System Call
1. Process traps to kernel.
2. Trap handler runs in kernel mode and saves all regs.
3. Handler sets stack pointer to process’s kernel stack.
4. Kernel runs system call.
5. Kernel places any requested data into user space’s structure.
6. Kernel changes any process structure values affected.
7. Process returns to user mode, replaces reg and stack and returning value from system call.