Free IRIX Binary Compatibility, Part 4 Tutorial

Feb
11

IRIX Binary Compatibility, Part 4

Posted by admin

A user process enters the kernel by a trap. When a trap is caught, the hardware transferscontrol to the kernel. Assembly code in sys/arch/mips/mips/locore.S builds a trap frame(this is a struct frame, defined in sys/arch/mips/include/proc.h) on the kernel stack, in whichCPU registers are saved. Then the trap() function from sys/arch/mips/mips/trap.c is called to handle the trap.When resuming the process execution, the kernel just restores the CPU registers from the trapframe. This res 
continue >>

Tags:

Add A Comment