amd64: clarify sys_fork code path

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-21 21:31:11 -04:00
commit ec4e9fc27d
4 changed files with 23 additions and 25 deletions

View file

@ -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 {