diff options
Diffstat (limited to 'src/misc/sched_yield.c')
-rw-r--r-- | src/misc/sched_yield.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/misc/sched_yield.c b/src/misc/sched_yield.c new file mode 100644 index 00000000..8a68519e --- /dev/null +++ b/src/misc/sched_yield.c @@ -0,0 +1,10 @@ +#include <sched.h> +#include "syscall.h" +#include "libc.h" + +int __yield() +{ + return syscall0(__NR_sched_yield); +} + +weak_alias(__yield, sched_yield); |