mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 13:47:35 +00:00
Kernel: Dump memory regions when crashing in ring 0
This commit is contained in:
parent
b86443f0e1
commit
e53571ef59
1 changed files with 3 additions and 1 deletions
|
@ -234,8 +234,10 @@ void handle_crash(RegisterState const& regs, char const* description, int signal
|
||||||
dmesgln("CRASH: CPU #{} {} in ring {}", Processor::current_id(), description, (regs.cs & 3));
|
dmesgln("CRASH: CPU #{} {} in ring {}", Processor::current_id(), description, (regs.cs & 3));
|
||||||
dump(regs);
|
dump(regs);
|
||||||
|
|
||||||
if (crashed_in_kernel)
|
if (crashed_in_kernel) {
|
||||||
|
process.address_space().dump_regions();
|
||||||
PANIC("Crash in ring 0");
|
PANIC("Crash in ring 0");
|
||||||
|
}
|
||||||
|
|
||||||
process.crash(signal, regs.ip(), out_of_memory);
|
process.crash(signal, regs.ip(), out_of_memory);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue