Basically , links
- The user-mode program places values in registers, or creates a stack frame with arguments, to indicate what specific service it requires from the operating system.
- The user-mode program then performs the trap instruction.
- Immediately, the CPU switches to kernel mode, and jumps to instructions at a fixed location in memory.
- These instruction, which are part of the operating system, have memory protections so that they cannot be modified by user-mode programs, and may also be unreadable by user-mode programs.
- The instructions, known as the trap or system call handler, read the details of the requested service + arguments, and then perform this request in kernel mode.
- With the system call done, the operating system resets the mode to user-mode and returns from the system call, or there is an instruction to do both at the same time.
[+] click to leave a comment [+]
the comment system on this blog works via email. The button below will generate a mailto: link based on this page's url and invoke your email client - please edit the comment there! [optional] even better, encrypt the email with my public key - don't modify the subject field - specify a nickname, otherwise your comment will be shown as anonymous - your email address will not be disclosed - you agree that the comment is to be made public. - to take down a comment, send the request via email.>> SEND COMMENT <<