From 79822e485edb7b447ab8cb17fdc0f572b598d829 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 17 Sep 2025 21:20:29 -0400 Subject: kern/amd64: Implement syscall domains and windows A syscall domain in the L5 kernel is a fixed list of "syscall windows", each syscall window represents a specific platform and/or syscall model. A platform latch within each domain determines which window / platform should be visible. Since syscall domains are per-process, these changes are local to their respective processes. Signed-off-by: Ian Moffett --- src/sys/os/os_syscall.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/sys/os/os_syscall.c') diff --git a/src/sys/os/os_syscall.c b/src/sys/os/os_syscall.c index 060f774..782bfb4 100644 --- a/src/sys/os/os_syscall.c +++ b/src/sys/os/os_syscall.c @@ -31,10 +31,7 @@ #include #include #include +#define _NEED_UNIX_SCTAB +#include -scret_t(*g_sctab[])(struct syscall_args *) = { - [SYS_none] = NULL, - [SYS_exit] = sys_exit -}; - -const size_t MAX_SYSCALLS = NELEM(g_sctab); +const size_t UNIX_SCTAB_LEN = NELEM(g_unix_sctab); -- cgit v1.2.3