summaryrefslogtreecommitdiff
path: root/Kernel/i386.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-22 13:22:27 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-22 13:22:27 +0200
commitc048ded470d3c3c935da6f07396caffb6db9e97e (patch)
tree4c231f6f335489122f555df8ca130382db400d1f /Kernel/i386.cpp
parente388808479d049e93990c5de1eb9e559f5045c2b (diff)
downloadserenity-c048ded470d3c3c935da6f07396caffb6db9e97e.zip
Kernel: Dump backtrace on illegal opcode exception.
Diffstat (limited to 'Kernel/i386.cpp')
-rw-r--r--Kernel/i386.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/i386.cpp b/Kernel/i386.cpp
index a20458fc15..1409da2c43 100644
--- a/Kernel/i386.cpp
+++ b/Kernel/i386.cpp
@@ -171,6 +171,8 @@ void exception_6_handler(RegisterDump& regs)
dump(regs);
+ dump_backtrace();
+
if (current->process().is_ring0()) {
kprintf("Oh shit, we've crashed in ring 0 :(\n");
hang();