mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 06:58:22 +00:00
scheduler: handle userland thread exit
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
section .text
|
||||
global arch_context_switch
|
||||
arch_context_switch:
|
||||
extern sched_userspacecheck
|
||||
call sched_userspacecheck ; compiled with no_caller_saved_registers
|
||||
|
||||
; rdi is the pointer to the context struct
|
||||
mov rsp, rdi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user