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 <andrew.p.boie@intel.com>
This commit is contained in:
parent
fcd2c14500
commit
0c3e05ae7c
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
esf->eax, esf->ebx, esf->ecx, esf->edx);
|
||||||
z_fatal_print("esi: 0x%08x, edi: 0x%08x, ebp: 0x%08x, esp: 0x%08x",
|
z_fatal_print("esi: 0x%08x, edi: 0x%08x, ebp: 0x%08x, esp: 0x%08x",
|
||||||
esf->esi, esf->edi, esf->ebp, esf->esp);
|
esf->esi, esf->edi, esf->ebp, esf->esp);
|
||||||
z_fatal_print("eflags: 0x%08x cs: 0x%04x", esf->eflags,
|
z_fatal_print("eflags: 0x%08x cs: 0x%04x cr3: %p", esf->eflags,
|
||||||
esf->cs & 0xFFFFU);
|
esf->cs & 0xFFFFU, z_x86_page_tables_get());
|
||||||
|
|
||||||
#ifdef CONFIG_EXCEPTION_STACK_TRACE
|
#ifdef CONFIG_EXCEPTION_STACK_TRACE
|
||||||
z_fatal_print("call trace:");
|
z_fatal_print("call trace:");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue