summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-03-08 16:37:20 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-09 16:43:00 +0100
commit09e644f0ba6c6cc637bb00863bbce12b8ab03850 (patch)
tree175de03ef0aa371f2d17cbf9e486833a06a52443
parentb4fefedd1db89fd664fde000be5d012474f9773a (diff)
downloadserenity-09e644f0ba6c6cc637bb00863bbce12b8ab03850.zip
Kernel: Mark sys$emuctl() as not needing the big lock
This syscall doesn't do anything at all, and definitely doesn't need the big lock. :^)
-rw-r--r--Kernel/API/Syscall.h2
-rw-r--r--Kernel/Syscalls/emuctl.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/API/Syscall.h b/Kernel/API/Syscall.h
index 0d8d4c2679..5a95696a72 100644
--- a/Kernel/API/Syscall.h
+++ b/Kernel/API/Syscall.h
@@ -63,7 +63,7 @@ enum class NeedsBigProcessLock {
S(disown, NeedsBigProcessLock::Yes) \
S(dump_backtrace, NeedsBigProcessLock::No) \
S(dup2, NeedsBigProcessLock::No) \
- S(emuctl, NeedsBigProcessLock::Yes) \
+ S(emuctl, NeedsBigProcessLock::No) \
S(execve, NeedsBigProcessLock::Yes) \
S(exit, NeedsBigProcessLock::Yes) \
S(exit_thread, NeedsBigProcessLock::Yes) \
diff --git a/Kernel/Syscalls/emuctl.cpp b/Kernel/Syscalls/emuctl.cpp
index cb44701897..85064065f6 100644
--- a/Kernel/Syscalls/emuctl.cpp
+++ b/Kernel/Syscalls/emuctl.cpp
@@ -10,7 +10,7 @@ namespace Kernel {
ErrorOr<FlatPtr> Process::sys$emuctl()
{
- VERIFY_PROCESS_BIG_LOCK_ACQUIRED(this);
+ VERIFY_NO_PROCESS_BIG_LOCK(this);
return ENOSYS;
}