Kernel: Tidy up the syscalls list by reorganizing the enumerator macro

This commit is contained in:
Andreas Kling 2020-08-04 13:00:50 +02:00
commit 83a4fbf548
Notes: sideshowbarker 2024-07-19 04:19:34 +09:00
3 changed files with 154 additions and 169 deletions

View file

@ -36,14 +36,11 @@
#if !defined __ENUMERATE_SYSCALL
# define __ENUMERATE_SYSCALL(x) SC_##x,
#endif
#if !defined __ENUMERATE_REMOVED_SYSCALL
# define __ENUMERATE_REMOVED_SYSCALL(x)
#endif
#define SC_NARG 4
Syscall::Function syscall_table[] = {
ENUMERATE_SYSCALLS
ENUMERATE_SYSCALLS(__ENUMERATE_SYSCALL)
};
FlatPtr arg[SC_NARG];