sched: add kernel API for blocking processes
This commit is contained in:
parent
3b1dc7e153
commit
5f00dac0ea
3 changed files with 44 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue