mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
Kernel: Mark s_syscall_table const so it ends up in ro_data.
This commit is contained in:
parent
84ad8a51d3
commit
1d7a0ab5ea
Notes:
sideshowbarker
2024-07-18 20:26:47 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/1d7a0ab5ea2 Pull-request: https://github.com/SerenityOS/serenity/pull/6278
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user