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

@ -99,16 +99,6 @@ irq_common:
add rsp, 8
iretq
/* Called by switch_to's ret when a thread is first scheduled.
* RSP points at user_rsp (set up by sys_fork / sched_init).
* rcx and r11 already set from pop_all (rcx=entry, r11=rflags).
*/
.global sched_start
sched_start:
pop rsp
swapgs
sysretq
.global _syscall_enter
_syscall_enter:
swapgs