diff options
author | Andreas Kling <kling@serenityos.org> | 2021-02-14 09:30:31 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-02-14 09:36:58 +0100 |
commit | b712345c922cfd32e7ec971f817af97ca7ee7ab4 (patch) | |
tree | c8cbfe3b0e281b603cfae05f5b0abb87b53e3776 /Kernel/Scheduler.cpp | |
parent | c598a95b1c3b66cf1029eac2bcd88288c1fdb05f (diff) | |
download | serenity-b712345c922cfd32e7ec971f817af97ca7ee7ab4.zip |
Kernel: Use PANIC() in a bunch of places :^)
Diffstat (limited to 'Kernel/Scheduler.cpp')
-rw-r--r-- | Kernel/Scheduler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/Scheduler.cpp b/Kernel/Scheduler.cpp index 3fc3c6867b..620afebcae 100644 --- a/Kernel/Scheduler.cpp +++ b/Kernel/Scheduler.cpp @@ -29,6 +29,7 @@ #include <AK/TemporaryChange.h> #include <AK/Time.h> #include <Kernel/Debug.h> +#include <Kernel/Panic.h> #include <Kernel/PerformanceEventBuffer.h> #include <Kernel/Process.h> #include <Kernel/RTC.h> @@ -418,8 +419,7 @@ bool Scheduler::context_switch(Thread* thread) if (thread->process().is_user_process()) { auto iopl = get_iopl_from_eflags(Thread::current()->get_register_dump_from_stack().eflags); if (iopl != 0) { - dbgln("PANIC: Switched to thread {} with non-zero IOPL={}", Thread::current()->tid().value(), iopl); - Processor::halt(); + PANIC("Switched to thread {} with non-zero IOPL={}", Thread::current()->tid().value(), iopl); } } #endif |