coreboot-kgpe-d16/src/include/cpu/x86
Aaron Durbin aae73d763e arch/x86: print cr2 value on every exception
Even though most x86 systems don't run with paging on, it's
helpful to always print it out for the ones that do without
making a more complicated handler. New dump will look like
the following:

Unexpected Exception: 6 @ 10:7ab84be2 - Halting
Code: 0 eflags: 00010006 cr2: 00000000
eax: 7abb80ec ebx: deadbeef ecx: 00000000 edx: 00000002
edi: 7abb3000 esi: 00000004 ebp: 7abb2fd8 esp: 7abb2fb0

7ab84ba0:       00 01 00 83 ec 0c 6a 39
7ab84ba8:       e8 8a 02 01 00 e8 e1 08
7ab84bb0:       00 00 e8 4e 3d 00 00 59
7ab84bb8:       5b 52 50 e8 f5 3c 00 00
7ab84bc0:       c7 04 24 0a 00 00 00 e8
7ab84bc8:       3c 3d 00 00 c7 04 24 80
7ab84bd0:       00 00 00 e8 5f 02 01 00
7ab84bd8:       e8 1e 38 01 00 e8 7e 50
7ab84be0:       01 00 0f 0b bb 98 ec ba
7ab84be8:       7a 83 c4 10 8b 03 85 c0
7ab84bf0:       0f 84 be 00 00 00 83 78
7ab84bf8:       04 00 8d 50 08 75 0c 56
7ab84c00:       56 ff 30 52 e8 f8 fe ff
7ab84c08:       ff eb 0a 51 51 ff 30 52
7ab84c10:       e8 2e ff ff ff 83 c4 10
7ab84c18:       83 c3 04 eb cf 89 d8 e8

BUG=b:72728953

Change-Id: I0e87bbe776f77623ad8297f5d80167998daec6ed
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: https://review.coreboot.org/25762
Reviewed-by: Furquan Shaikh <furquan@google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
2018-04-26 15:18:41 +00:00
..
bist.h x86 BIST: Fix missing include 2016-11-24 21:39:41 +01:00
cache.h include/cpu/x86: Add clflush inline function 2017-12-20 16:36:43 +00:00
cr.h arch/x86: print cr2 value on every exception 2018-04-26 15:18:41 +00:00
gdt.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
lapic.h arch/x86: Fix ugly NEED_LAPIC use 2017-08-19 15:30:40 +00:00
lapic_def.h src/include: Remove spaces before tabs 2017-03-12 15:45:37 +01:00
mp.h cpu/x86/mp_init: remove adjust_cpu_apic_entry() 2017-09-11 01:17:45 +00:00
msr.h cpu/x86: move NXE and PAT accesses to paging module 2018-04-23 09:18:07 +00:00
mtrr.h x86/mtrr: Enable Rd/WrDram mod in AMD fixed MTRRs 2018-02-16 22:38:50 +00:00
name.h tree: drop last paragraph of GPL copyright header 2015-10-31 21:37:39 +01:00
pae.h cpu/x86: add limited runtime identity page mapping 2018-04-26 06:55:59 +00:00
post_code.h src/include: Add guards on all header files 2017-08-01 23:04:15 +00:00
smm.h cpu/x86: add AMD registers to SMM save state 2017-10-19 15:13:18 +00:00
tsc.h src/include: add IS_ENABLED() around Kconfig symbol references 2017-07-13 23:55:05 +00:00