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
Notes: sideshowbarker 2024-07-18 20:26:47 +09:00

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