mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
Kernel: Get Alt-Shift-F12 to work on x86_64
This commit is contained in:
parent
422166fb80
commit
247af7aa6a
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue