diff options
author | Ian Moffett <ian@osmora.org> | 2024-04-16 20:10:07 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-04-16 20:10:07 -0400 |
commit | 0d8da6f5436874c1dd987b53d11a3d3aea468f67 (patch) | |
tree | 02bcff6e0a18633d8318269cb23780f775d99727 /sys/kern/kern_syscall.c | |
parent | 9a26f4d453b1742c6249d66a077a175120e23338 (diff) |
kernel: vm_map: Add mmap() and munmap()
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/kern/kern_syscall.c')
-rw-r--r-- | sys/kern/kern_syscall.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/kern_syscall.c b/sys/kern/kern_syscall.c index a630195..b4a86f3 100644 --- a/sys/kern/kern_syscall.c +++ b/sys/kern/kern_syscall.c @@ -32,6 +32,7 @@ #include <sys/cdefs.h> #include <sys/types.h> #include <sys/filedesc.h> +#include <vm/map.h> __noreturn static uint64_t sys_exit(struct syscall_args *args) @@ -47,4 +48,6 @@ uint64_t(*g_syscall_table[__MAX_SYSCALLS])(struct syscall_args *args) = { sys_close, sys_read, sys_lseek, + sys_mmap, + sys_munmap }; |