1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:57:35 +00:00

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. :^)
This commit is contained in:
Andreas Kling 2022-03-08 16:37:20 +01:00
parent b4fefedd1d
commit 09e644f0ba
2 changed files with 2 additions and 2 deletions

View file

@ -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) \

View file

@ -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;
}