the syscall stack frame and Context::regs method

watermirror 357836635 at qq.com
Tue Apr 28 09:42:14 CEST 2015


hi,
i am reading the code about system call.


after the sys_ipc_wrapper (in file kern/syscalls.cpp) is called.it get the thread's pointer by current_thread and then get the Syscall_frame. the code is like this:
...
Thread *curr=current_thread();
Syscall_frame *f = curr->regs();
...


i can not understand the relationship between curr->regs() and the system call's stack frame.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://os.inf.tu-dresden.de/pipermail/l4-hackers/attachments/20150428/e719d58b/attachment.html>


More information about the l4-hackers mailing list