diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-04 13:00:50 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-04 18:17:16 +0200 |
commit | 83a4fbf5481322989e2e4a83a13a3fc570130c9a (patch) | |
tree | 9a42b25e36a48bf66d204ff9ca5927c8cb9dd703 /Kernel/Syscall.cpp | |
parent | a619943001b83c227f144beb64122f0a9ba17c23 (diff) | |
download | serenity-83a4fbf5481322989e2e4a83a13a3fc570130c9a.zip |
Kernel: Tidy up the syscalls list by reorganizing the enumerator macro
Diffstat (limited to 'Kernel/Syscall.cpp')
-rw-r--r-- | Kernel/Syscall.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Kernel/Syscall.cpp b/Kernel/Syscall.cpp index b656e9905d..43370594e5 100644 --- a/Kernel/Syscall.cpp +++ b/Kernel/Syscall.cpp @@ -76,13 +76,11 @@ void initialize() #pragma GCC diagnostic ignored "-Wcast-function-type" typedef int (Process::*Handler)(u32, u32, u32); -#define __ENUMERATE_REMOVED_SYSCALL(x) nullptr, #define __ENUMERATE_SYSCALL(x) reinterpret_cast<Handler>(&Process::sys$##x), static Handler s_syscall_table[] = { - ENUMERATE_SYSCALLS + ENUMERATE_SYSCALLS(__ENUMERATE_SYSCALL) }; #undef __ENUMERATE_SYSCALL -#undef __ENUMERATE_REMOVED_SYSCALL int handle(RegisterState& regs, u32 function, u32 arg1, u32 arg2, u32 arg3) { |