From 81a58004d51547d074b4218f906b0b95f2b2c5dc Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 4 Aug 2022 15:58:54 +0200 Subject: syscalls: add _syscall_sleep() --- src/user/lib/syscall.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/user/lib') 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); } -- cgit v1.2.3