summaryrefslogtreecommitdiff
path: root/src/user/lib
diff options
context:
space:
mode:
authordzwdz2022-08-04 15:58:54 +0200
committerdzwdz2022-08-04 15:58:54 +0200
commit81a58004d51547d074b4218f906b0b95f2b2c5dc (patch)
tree4301047fc342e165bc5a043a04b5fed44b8e8084 /src/user/lib
parent4a844820866094ff7d57435a16b7c23a9126814d (diff)
syscalls: add _syscall_sleep()
Diffstat (limited to 'src/user/lib')
-rw-r--r--src/user/lib/syscall.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/user/lib/syscall.c b/src/user/lib/syscall.c
index 842b7b9..ffda454 100644
--- a/src/user/lib/syscall.c
+++ b/src/user/lib/syscall.c
@@ -58,6 +58,10 @@ long _syscall_pipe(handle_t __user user_ends[2], int flags) {
return _syscall(_SYSCALL_PIPE, (long)user_ends, (long)flags, 0, 0, 0);
}
+void _syscall_sleep(long ms) {
+ return (void)_syscall(_SYSCALL_SLEEP, ms, 0, 0, 0, 0);
+}
+
long _syscall_execbuf(void __user *buf, size_t len) {
return _syscall(_SYSCALL_EXECBUF, (long)buf, (long)len, 0, 0, 0);
}