amd64: clarify sys_fork code path
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
b6a9ddd1d0
commit
ec4e9fc27d
4 changed files with 23 additions and 25 deletions
|
|
@ -40,7 +40,8 @@ struct proc;
|
|||
struct thread {
|
||||
tid_t tid;
|
||||
|
||||
uaddr_t stack_addr;
|
||||
uaddr_t kstack_ptr; /* kernel RSP save slot for switch_to (offset 8) */
|
||||
uaddr_t ustack_top; /* user stack top */
|
||||
size_t stack_size;
|
||||
|
||||
u64 state;
|
||||
|
|
@ -49,7 +50,7 @@ struct thread {
|
|||
|
||||
struct proc *proc;
|
||||
struct thread *next;
|
||||
uaddr_t kstack_top;
|
||||
uaddr_t kstack_top; /* top of kernel stack allocation */
|
||||
};
|
||||
|
||||
struct proc {
|
||||
|
|
|
|||
Loading…
Reference in a new issue