diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-08-06 14:47:26 +0300 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-06 23:36:12 +0200 |
commit | 1a08694dfc6a2f0b3ff934ba43f6aab591bc1e41 (patch) | |
tree | b900be2cf7326dfbd1b65ee39798f48161519c0f /Kernel/Syscalls/keymap.cpp | |
parent | 48325e29598cc79aaccf9fa3992cbca7aeff9bf3 (diff) | |
download | serenity-1a08694dfc6a2f0b3ff934ba43f6aab591bc1e41.zip |
Kernel: Disable big process lock for sys$getkeymap
This syscall only reads non process-related global values, and as such
doesn't need to hold the big lock.
Diffstat (limited to 'Kernel/Syscalls/keymap.cpp')
-rw-r--r-- | Kernel/Syscalls/keymap.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Syscalls/keymap.cpp b/Kernel/Syscalls/keymap.cpp index 0abe95413d..da76770568 100644 --- a/Kernel/Syscalls/keymap.cpp +++ b/Kernel/Syscalls/keymap.cpp @@ -48,6 +48,7 @@ KResultOr<FlatPtr> Process::sys$setkeymap(Userspace<const Syscall::SC_setkeymap_ KResultOr<FlatPtr> Process::sys$getkeymap(Userspace<const Syscall::SC_getkeymap_params*> user_params) { + VERIFY_NO_PROCESS_BIG_LOCK(this); REQUIRE_PROMISE(getkeymap); Syscall::SC_getkeymap_params params; |