sched: add kthread interface for system calls

This commit is contained in:
Michael Shaw 2025-02-09 20:56:25 -05:00
commit 89672d02f4
9 changed files with 169 additions and 140 deletions

View file

@ -172,6 +172,11 @@
iretq
.endm
.global _save_context
_save_context:
save_context
ret
.global sti
sti:
sti
@ -327,3 +332,8 @@ _return_to_user:
yield:
hlt
jmp yield
.global _kthread_exit
_kthread_exit:
movq %rax, %rdi
call kthread_exit