about summary refs log tree commit diff
path: root/src/sched/sched_yield.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sched/sched_yield.c')
-rw-r--r--src/sched/sched_yield.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/sched/sched_yield.c b/src/sched/sched_yield.c
new file mode 100644
index 00000000..6c0742b4
--- /dev/null
+++ b/src/sched/sched_yield.c
@@ -0,0 +1,10 @@
+#include <sched.h>
+#include "syscall.h"
+#include "libc.h"
+
+int __yield()
+{
+	return syscall(SYS_sched_yield);
+}
+
+weak_alias(__yield, sched_yield);