coreboot-kgpe-d16/src/arch/x86
Raul E Rangel 5bb926e3c9 arch/x86/exception: Print stack on exception
It's useful to see the stack when an exception happens so you can see
the variables on the stack, and also manually recreate the back trace.

If you need to recreate the back trace, you will need to add
-fno-omit-frame-pointer to the CFLAGS.

BUG=b:159081993
TEST=Caused an exception and saw the stack dumped. Then I manually
recreated the back trace.

0xcc6fff6c:     0xcc6ce02e <- 0xcc6ce02e is in dev_initialize
0xcc6fff68:     0xcc6fff88 <-- frame 1
0xcc6fff64:     0x00000005
0xcc6fff60:     0x000000dc
0xcc6fff5c:     0x00000000
0xcc6fff58:     0x00000200
0xcc6fff54:     0x00000000
0xcc6fff50:     0x00000400
0xcc6fff4c:     0xcc6d72d4 <- 0xcc6d72d4 is in setup_default_ebdad
0xcc6fff48:     0xcc6fff68 <-ebp
0xcc6fff44:     0x00000005
0xcc6fff40:     0xcc6f571c <-esp

Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Change-Id: I3822ea7aa23202ecc98612850402eeb4b1f7b5ef
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42884
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2020-07-10 15:39:51 +00:00
..
acpi ACPI: Drop commented-out DSDT DefinitionBlock instances 2020-07-09 23:55:06 +00:00
include arch/x86: Support x86_64 exceptions 2020-07-05 19:56:09 +00:00
acpi_bert_storage.c src: Remove unused 'include <bootstate.h>' 2020-06-02 07:40:35 +00:00
acpi_s3.c ACPI: Replace smm_setup_structures() 2020-06-24 11:49:15 +00:00
assembly_entry.S treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
boot.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
bootblock_crt0.S arch/x86: Remove more romcc leftovers 2020-05-28 09:50:52 +00:00
bootblock_normal.c src: Remove unused 'include <string.h>' 2020-05-18 07:41:24 +00:00
c_start.S treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
car.ld arch/x86: Add symbols for CAR MTRRs in linker script 2020-06-13 12:25:18 +00:00
cbmem.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
cf9_reset.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
cpu.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
cpu_common.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
ebda.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
exception.c arch/x86/exception: Print stack on exception 2020-07-10 15:39:51 +00:00
exit_car.S treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
gdt_init.S treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
id.ld arch/x86: Fix id section in linker script 2020-05-28 09:51:46 +00:00
id.S treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
idt.S arch/x86: Support x86_64 exceptions 2020-07-05 19:56:09 +00:00
ioapic.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
Kconfig Kconfig: Escape variable to accommodate new Kconfig versions 2020-06-19 15:29:04 +00:00
Makefile.inc arch/x86: Add memmove.c to x86 bootblock 2020-07-08 21:06:47 +00:00
memcpy.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
memlayout.ld arch/x86: Remove RELOCATABLE_RAMSTAGE 2020-07-06 06:17:47 +00:00
memmove.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
memset.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
mmap_boot.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
mpspec.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
pirq_routing.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
post.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
postcar.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
postcar_loader.c arch/x86/postcar_loader: utilize var_mtrr_context API 2020-06-02 16:10:05 +00:00
rdrand.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
smbios.c arch/x86/smbios: Add SMBIOS type8 data 2020-07-04 11:21:18 +00:00
tables.c src: Remove unused 'include <bootstate.h>' 2020-06-02 07:40:35 +00:00
thread.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
thread_switch.S treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
timestamp.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
timestamp.inc treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
verstage.c treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
wakeup.S treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00
walkcbfs.S treewide: Remove "this file is part of" lines 2020-05-11 17:11:40 +00:00