mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 06:09:08 +00:00
Kernel: Use PANIC() in a bunch of places :^)
This commit is contained in:
parent
c598a95b1c
commit
b712345c92
Notes:
sideshowbarker
2024-07-18 22:20:27 +09:00
Author: https://github.com/awesomekling
Commit: b712345c92
8 changed files with 26 additions and 42 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue