sched: add kernel API for blocking processes

This commit is contained in:
Michael Shaw 2024-02-19 02:27:03 -05:00
commit 5f00dac0ea
3 changed files with 44 additions and 0 deletions

View file

@ -209,6 +209,12 @@ gate_syscall:
movq %rax, 0(%rdi)
call schedule
.global syscall_block
syscall_block:
cli
save_context
call schedule
/* void return_from_irq(struct procregs *regs, paddr_t cr3); */
.global _return_to_user
_return_to_user: