Skip to content

Commit

Permalink
Documentation: teaching: syscall lecture: fix slide to fit
Browse files Browse the repository at this point in the history
Fix the "System Call Flow Summary" slide to fit by rephrasing some
bullets which should also hopefully make some points more clear.

Signed-off-by: Octavian Purdila <tavi@cs.pub.ro>
  • Loading branch information
tavip committed Feb 27, 2018
1 parent 1c634de commit be0e9d8
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Documentation/teaching/lectures/syscalls.rst
Original file line number Diff line number Diff line change
Expand Up @@ -194,21 +194,19 @@ In summary, this is what happens during a system call:
* The application is setting up the system call number and
parameters and it issues a trap instruction

* The execution mode switches from user to kernel

* During this process, the CPU switches to a kernel stack, while
saving the user stack and return address to userspace
* The execution mode switches from user to kernel; the CPU switches
to a kernel stack; the user stack and the return address to user
space is saved on the kernel stack

* The kernel entry point saves registers on the kernel stack

* The system call dispatcher identifies the system call function
and runs it

* When the system call function returns the userspace registers are
restored and execution is switched back to user mode by executing
an architecture specific instruction (e.g. IRET)
* The userspace registers are restored and execution is switched
back to user (e.g. calling IRET)

* userspace application resumes
* Userspace application resumes


System call table
Expand Down

0 comments on commit be0e9d8

Please sign in to comment.