1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:38:11 +00:00

Kernel: Mark s_syscall_table const so it ends up in ro_data.

This commit is contained in:
Brian Gianforcaro 2021-04-12 11:59:19 -07:00 committed by Andreas Kling
parent 84ad8a51d3
commit 1d7a0ab5ea

View file

@ -87,7 +87,7 @@ UNMAP_AFTER_INIT void initialize()
typedef KResultOr<FlatPtr> (Process::*Handler)(FlatPtr, FlatPtr, FlatPtr);
typedef KResultOr<FlatPtr> (Process::*HandlerWithRegisterState)(RegisterState&);
#define __ENUMERATE_SYSCALL(x) reinterpret_cast<Handler>(&Process::sys$##x),
static Handler s_syscall_table[] = {
static const Handler s_syscall_table[] = {
ENUMERATE_SYSCALLS(__ENUMERATE_SYSCALL)
};
#undef __ENUMERATE_SYSCALL