From 1bf901c803bff3393d0cc9dfe76fc9f025cecb1c Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sun, 12 Sep 2021 14:59:47 +0200 Subject: barebones `memflag()` implementation - letting the user allocate pages --- src/shared/syscalls.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/shared/syscalls.h') diff --git a/src/shared/syscalls.h b/src/shared/syscalls.h index a746ade..d96c8a7 100644 --- a/src/shared/syscalls.h +++ b/src/shared/syscalls.h @@ -22,6 +22,8 @@ enum { _SYSCALL_FS_CREATE, _SYSCALL_FS_WAIT, + + _SYSCALL_MEMFLAG, }; /** Kills the current process. @@ -53,3 +55,5 @@ int _syscall_close(handle_t); handle_t _syscall_fs_create(handle_t __user *back); int _syscall_fs_wait(handle_t back, char __user *buf, int __user *len); + +int _syscall_memflag(void __user *addr, size_t len, int flags); -- cgit v1.2.3