aboutsummaryrefslogtreecommitdiff
path: root/src/lib/libkogata/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libkogata/syscall.c')
-rw-r--r--src/lib/libkogata/syscall.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/libkogata/syscall.c b/src/lib/libkogata/syscall.c
index 2e0ef0f..afda7c7 100644
--- a/src/lib/libkogata/syscall.c
+++ b/src/lib/libkogata/syscall.c
@@ -35,6 +35,10 @@ void exit(int code) {
call(SC_EXIT, code, 0, 0, 0, 0);
}
+void usleep(int usecs) {
+ call(SC_USLEEP, usecs, 0, 0, 0, 0);
+}
+
bool mmap(void* addr, size_t size, int mode) {
return call(SC_MMAP, (uint32_t)addr, size, mode, 0, 0);
}