summaryrefslogtreecommitdiff
path: root/Kernel/Arch/x86/i386/Processor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/Arch/x86/i386/Processor.cpp')
-rw-r--r--Kernel/Arch/x86/i386/Processor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Arch/x86/i386/Processor.cpp b/Kernel/Arch/x86/i386/Processor.cpp
index a7b38e0c54..e57861b9f5 100644
--- a/Kernel/Arch/x86/i386/Processor.cpp
+++ b/Kernel/Arch/x86/i386/Processor.cpp
@@ -70,8 +70,8 @@ FlatPtr Processor::init_context(Thread& thread, bool leave_crit)
if (leave_crit) {
// Leave the critical section we set up in in Process::exec,
// but because we still have the scheduler lock we should end up with 1
- m_in_critical--; // leave it without triggering anything or restoring flags
- VERIFY(in_critical() == 1);
+ VERIFY(in_critical() == 2);
+ m_in_critical = 1; // leave it without triggering anything or restoring flags
}
u32 kernel_stack_top = thread.kernel_stack_top();