PPT Slide
System Calls (continued)
- A system call is similar to a procedure/function call in a traditional programming language, except a change in protection context occurs (user to system mode; perform call; system to user upon return)
- How to make a syscall
void open(char *file_name) {
asm {
load ReadSystemCallNumber,r8
move file_name,r9
syscall
}
}