mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
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.
This commit is contained in:
parent
48325e2959
commit
1a08694dfc
Notes:
sideshowbarker
2024-07-18 07:23:40 +09:00
Author: https://github.com/IdanHo
Commit: 1a08694dfc
Pull-request: https://github.com/SerenityOS/serenity/pull/9236
Reviewed-by: https://github.com/tomuta ✅
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue