From ba1b4df7024111d1438fcbdfa6cbc22a88359c6d Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Fri, 24 Nov 2023 16:49:05 -0800 Subject: [PATCH] [Zion] Add more context to GPT faults in the interrupt handler. --- zion/interrupt/interrupt.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zion/interrupt/interrupt.cpp b/zion/interrupt/interrupt.cpp index adaa37b..527d37b 100644 --- a/zion/interrupt/interrupt.cpp +++ b/zion/interrupt/interrupt.cpp @@ -110,6 +110,8 @@ extern "C" void interrupt_protection_fault(InterruptFrame* frame) { } dbgln("Index: {}", err >> 3); dbgln("RIP: {x}", frame->rip); + dbgln("RAX: {x}, RBX: {x}, RCX: {x}, RDX: {x}", frame->rax, frame->rbx, + frame->rcx, frame->rdx); dbgln("RSP: {x}", frame->rsp); StackUnwind(frame->rbp);