diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-06-28 17:06:36 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-28 22:29:28 +0200 |
commit | 247af7aa6addbd11303a56cce5a18def8cdf86bb (patch) | |
tree | 946f4e12e339e76a2b08e163b0ade362045b6ea6 /Kernel/Scheduler.cpp | |
parent | 422166fb80b78c928c5010512a033ca3b53cf495 (diff) | |
download | serenity-247af7aa6addbd11303a56cce5a18def8cdf86bb.zip |
Kernel: Get Alt-Shift-F12 to work on x86_64
Diffstat (limited to 'Kernel/Scheduler.cpp')
-rw-r--r-- | Kernel/Scheduler.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Kernel/Scheduler.cpp b/Kernel/Scheduler.cpp index e58b572d9a..a5daf526f7 100644 --- a/Kernel/Scheduler.cpp +++ b/Kernel/Scheduler.cpp @@ -592,12 +592,8 @@ void dump_thread_list() dbgln("Scheduler thread list for processor {}:", Processor::id()); auto get_cs = [](Thread& thread) -> u16 { -#if ARCH(I386) if (!thread.current_trap()) return thread.regs().cs; -#else - PANIC("get_cs() not implemented"); -#endif return thread.get_register_dump_from_stack().cs; }; @@ -607,7 +603,8 @@ void dump_thread_list() return thread.regs().eip; return thread.get_register_dump_from_stack().eip; #else - PANIC("get_eip() not implemented"); + if (!thread.current_trap()) + return thread.regs().rip; return thread.get_register_dump_from_stack().rip; #endif }; |