mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
kernel: add yield syscall
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
#include <kernel/syscalls.h>
|
||||
#include <kernel/scheduler.h>
|
||||
|
||||
syscallret_t syscall_yield(context_t *) {
|
||||
syscallret_t ret = {0};
|
||||
|
||||
sched_yield();
|
||||
|
||||
return ret;
|
||||
}
|
||||
Reference in New Issue
Block a user