Skip to content
Browse files

x86: report CR3 on fatal exception

Lets us know what set of page tables were in use when
the error occurred.

Signed-off-by: Andrew Boie <>
  • Loading branch information...
andrewboie authored and carlescufi committed Jul 30, 2019
1 parent fcd2c14 commit 0c3e05ae7c3cd1288b1771d3324139165233d7f7
Showing with 2 additions and 2 deletions.
  1. +2 −2 arch/x86/core/ia32/fatal.c
@@ -136,8 +136,8 @@ FUNC_NORETURN void z_x86_fatal_error(unsigned int reason, const z_arch_esf_t *es
esf->eax, esf->ebx, esf->ecx, esf->edx);
z_fatal_print("esi: 0x%08x, edi: 0x%08x, ebp: 0x%08x, esp: 0x%08x",
esf->esi, esf->edi, esf->ebp, esf->esp);
z_fatal_print("eflags: 0x%08x cs: 0x%04x", esf->eflags,
esf->cs & 0xFFFFU);
z_fatal_print("eflags: 0x%08x cs: 0x%04x cr3: %p", esf->eflags,
esf->cs & 0xFFFFU, z_x86_page_tables_get());

z_fatal_print("call trace:");

0 comments on commit 0c3e05a

Please sign in to comment.
You can’t perform that action at this time.