From 1d7a0ab5ea2e2ad335f872f3db65fc15fad54cfd Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Mon, 12 Apr 2021 11:59:19 -0700 Subject: [PATCH] Kernel: Mark s_syscall_table const so it ends up in ro_data. --- Kernel/Syscall.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kernel/Syscall.cpp b/Kernel/Syscall.cpp index a49225d3e13..fc1fe892385 100644 --- a/Kernel/Syscall.cpp +++ b/Kernel/Syscall.cpp @@ -87,7 +87,7 @@ UNMAP_AFTER_INIT void initialize() typedef KResultOr (Process::*Handler)(FlatPtr, FlatPtr, FlatPtr); typedef KResultOr (Process::*HandlerWithRegisterState)(RegisterState&); #define __ENUMERATE_SYSCALL(x) reinterpret_cast(&Process::sys$##x), -static Handler s_syscall_table[] = { +static const Handler s_syscall_table[] = { ENUMERATE_SYSCALLS(__ENUMERATE_SYSCALL) }; #undef __ENUMERATE_SYSCALL