diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-06 14:05:41 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-06 14:05:41 +0100 |
commit | e53cef02d5a66591efb2d85f9ca576dcfe7a5421 (patch) | |
tree | 5187b8615d17f27d65942e6c779c4de34edd43e3 | |
parent | 7f6c81d90f0b1ccb217bd283dfb59727fbb0045d (diff) | |
download | serenity-e53cef02d5a66591efb2d85f9ca576dcfe7a5421.zip |
Kernel: Dump kernel stack trace on assertion failure.
-rw-r--r-- | Kernel/i386.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/i386.cpp b/Kernel/i386.cpp index 2561b4a4f6..e4dd426095 100644 --- a/Kernel/i386.cpp +++ b/Kernel/i386.cpp @@ -483,6 +483,8 @@ void __assertion_failed(const char* msg, const char* file, unsigned line, const { asm volatile("cli"); kprintf("ASSERTION FAILED: %s\n%s:%u in %s\n", msg, file, line, func); + extern void dump_backtrace(bool); + dump_backtrace(true); asm volatile("hlt"); for (;;); } |