diff options
Diffstat (limited to 'src/arch/x86')
-rw-r--r-- | src/arch/x86/exception.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/arch/x86/exception.c b/src/arch/x86/exception.c index 5a5dfd2831..c89371ee7f 100644 --- a/src/arch/x86/exception.c +++ b/src/arch/x86/exception.c @@ -17,6 +17,7 @@ #include <compiler.h> #include <console/console.h> #include <console/streams.h> +#include <cpu/x86/cr.h> #include <rules.h> #include <stdint.h> #include <string.h> @@ -503,11 +504,11 @@ void x86_exception(struct eregs *info) #define MDUMP_SIZE 0x80 printk(BIOS_EMERG, "Unexpected Exception: %d @ %02x:%08x - Halting\n" - "Code: %d eflags: %08x\n" + "Code: %d eflags: %08x cr2: %08x\n" "eax: %08x ebx: %08x ecx: %08x edx: %08x\n" "edi: %08x esi: %08x ebp: %08x esp: %08x\n", info->vector, info->cs, info->eip, - info->error_code, info->eflags, + info->error_code, info->eflags, read_cr2(), info->eax, info->ebx, info->ecx, info->edx, info->edi, info->esi, info->ebp, info->esp); u8 *code = (u8 *)((uintptr_t)info->eip - (MDUMP_SIZE >> 1)); |