System call processs

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2023 Sep 13 6:21
Editor
Edited
Edited
2023 Oct 11 6:49
Refs
Refs

Method

int 0x80(vector) or sysenter
  1. same reg to KM stack
  1. invoke system call service routine
  1. exit handler
syscall_exit or sysexit
example
  1. fork ()
  1. fork{} in libc.a
  1. movl 2, %eax - 2 means fork, eax is register
  1. int 0x80(system call)
  1. go to (interrupt desciptor table)
  1. go to kernel mode function
  1. save all in stack
  1. check eax to function
  1. find sys call table that (2, fork)
  1. do ref_from_sys_call in entry.S
 
 
 
 
 
 

Recommendations