From 96f41ff64d8113307f1b60d2eb6852423db34d14 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 18 Jul 2022 23:55:58 +0200 Subject: syscalls: implement execbuf i have been planning to implement something like this for a while now. it should be faster when doing consecutive syscalls (to be tested). it will also be helpful in writing the elf loader --- src/user/lib/syscall.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/user/lib/syscall.c') diff --git a/src/user/lib/syscall.c b/src/user/lib/syscall.c index 23b82f7..e105638 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); } +long _syscall_execbuf(void __user *buf, size_t len) { + return _syscall(_SYSCALL_EXECBUF, (long)buf, (long)len, 0, 0); +} + void _syscall_debug_klog(const void __user *buf, size_t len) { return (void)_syscall(_SYSCALL_DEBUG_KLOG, (long)buf, (long)len, 0, 0); } -- cgit v1.2.3