diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-19 23:14:23 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-19 23:22:21 -0400 |
commit | f8411d1f1a4765ce38e63f4b3304d72cbfddad6f (patch) | |
tree | 4fe1f21427e834636f601b3958c88f25464bce49 /src/sys/include/compat/unix | |
parent | 6b2d1153852a7f0121d6514cb4d7e5dc6baa7e39 (diff) |
kern: vm: Introduce initial mmap() impl
- Adds kernel mmap() function
- Adds SYS_mmap syscall
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include/compat/unix')
-rw-r--r-- | src/sys/include/compat/unix/syscall.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sys/include/compat/unix/syscall.h b/src/sys/include/compat/unix/syscall.h index 9b76139..5df3c51 100644 --- a/src/sys/include/compat/unix/syscall.h +++ b/src/sys/include/compat/unix/syscall.h @@ -39,6 +39,7 @@ #include <os/iotap.h> #include <os/reboot.h> #include <dms/dms.h> +#include <vm/map.h> /* * Exit the current process - exit(2) syscall @@ -100,7 +101,8 @@ scret_t(*g_unix_sctab[])(struct syscall_args *) = { [SYS_lseek] = sys_lseek, [SYS_socket] = sys_socket, [SYS_listen] = sys_listen, - [SYS_seteuid] = sys_seteuid + [SYS_seteuid] = sys_seteuid, + [SYS_mmap] = sys_mmap }; #endif /* !_NEED_UNIX_SCTAB */ |