From 247af7aa6addbd11303a56cce5a18def8cdf86bb Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 28 Jun 2021 17:06:36 +0200 Subject: Kernel: Get Alt-Shift-F12 to work on x86_64 --- Kernel/Scheduler.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'Kernel/Scheduler.cpp') 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 }; -- cgit v1.2.3