mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
Kernel: Print panic backtrace to both the screen and serial
Previously it would only print the backtrace to serial, which would be inaccessible if you don't have serial setup.
This commit is contained in:
parent
7c617394a1
commit
cbbbc38f27
3 changed files with 22 additions and 9 deletions
|
@ -26,7 +26,7 @@ namespace Kernel {
|
|||
void __panic(const char* file, unsigned int line, const char* function)
|
||||
{
|
||||
critical_dmesgln("at {}:{} in {}", file, line, function);
|
||||
dump_backtrace();
|
||||
dump_backtrace(PrintToScreen::Yes);
|
||||
if (kernel_command_line().boot_mode() == BootMode::SelfTest)
|
||||
__shutdown();
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue