mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 21:07:34 +00: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());
|
dbgln("Scheduler thread list for processor {}:", Processor::id());
|
||||||
|
|
||||||
auto get_cs = [](Thread& thread) -> u16 {
|
auto get_cs = [](Thread& thread) -> u16 {
|
||||||
#if ARCH(I386)
|
|
||||||
if (!thread.current_trap())
|
if (!thread.current_trap())
|
||||||
return thread.regs().cs;
|
return thread.regs().cs;
|
||||||
#else
|
|
||||||
PANIC("get_cs() not implemented");
|
|
||||||
#endif
|
|
||||||
return thread.get_register_dump_from_stack().cs;
|
return thread.get_register_dump_from_stack().cs;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -607,7 +603,8 @@ void dump_thread_list()
|
||||||
return thread.regs().eip;
|
return thread.regs().eip;
|
||||||
return thread.get_register_dump_from_stack().eip;
|
return thread.get_register_dump_from_stack().eip;
|
||||||
#else
|
#else
|
||||||
PANIC("get_eip() not implemented");
|
if (!thread.current_trap())
|
||||||
|
return thread.regs().rip;
|
||||||
return thread.get_register_dump_from_stack().rip;
|
return thread.get_register_dump_from_stack().rip;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue