summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-06 14:05:41 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-03-06 14:05:41 +0100
commite53cef02d5a66591efb2d85f9ca576dcfe7a5421 (patch)
tree5187b8615d17f27d65942e6c779c4de34edd43e3
parent7f6c81d90f0b1ccb217bd283dfb59727fbb0045d (diff)
downloadserenity-e53cef02d5a66591efb2d85f9ca576dcfe7a5421.zip
Kernel: Dump kernel stack trace on assertion failure.
-rw-r--r--Kernel/i386.cpp2
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 (;;);
}