switch-coreboot/include
Carl-Daniel Hailfinger cb9db3b6d0 We are woefully unaware about how much stack v3 really uses.
This is a complete rewrite of my earlier stack checker proposal.
It works for CAR and RAM, has better abstraction and actually gives us
nice results.
The stack checker is default off due to its rather measurable impact on
boot speed.
Diagnostic messages are printed on first initialization, directly after
RAM init and directly before passing control to the payload. Sample qemu
log is attached. Extract from that log follows:

coreboot-3.0.986 Fri Nov  7 04:04:37 CET 2008 starting...
(console_loglevel=8)
Initial lowest stack is 0x0008fe98
Choosing fallback boot.
[...]
Done RAM init code
After RAM init, lowest stack is 0x0008fe30
Done printk() buffer move
[...]
LAR: load_file_segments: Failed for normal/payload
Before handoff to payload, lowest stack is 0x0008bf50
FATAL: No usable payload found.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Peter Stuge <peter@stuge.se>


git-svn-id: svn://coreboot.org/repository/coreboot-v3@1012 f3766cd6-281f-0410-b1cd-43a5c92072e9
2008-11-13 01:28:32 +00:00
..
arch/x86 We are woefully unaware about how much stack v3 really uses. 2008-11-13 01:28:32 +00:00
device Stage 1 mostly works. Stage 2 needs lots of twiddling. 2008-11-12 04:10:45 +00:00
console.h Fixes to make k8 and others work. 2008-08-27 22:43:18 +00:00
elf.h Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
elf_boot.h Use the same naming convention and placement for "include guards" in 2007-05-21 06:48:47 +00:00
globalvars.h We are woefully unaware about how much stack v3 really uses. 2008-11-13 01:28:32 +00:00
ip_checksum.h Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
isa-dma.h Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
keyboard.h Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
lar.h The ABI wrapper from r775 made the SHARED definitions obsolete. They're 2008-08-17 21:51:13 +00:00
lib.h remaining fixes for log2. Simple prototype added to spd_ddr2.h 2008-08-31 20:39:48 +00:00
mc146818rtc.h The ABI wrapper from r775 made the SHARED definitions obsolete. They're 2008-08-17 21:51:13 +00:00
post_code.h The ABI wrapper from r775 made the SHARED definitions obsolete. They're 2008-08-17 21:51:13 +00:00
shared.h The ABI wrapper from r775 made the SHARED definitions obsolete. They're 2008-08-17 21:51:13 +00:00
spd.h Commit a few things I forgot with the vt8237 patch, and also a couple 2008-10-15 06:41:16 +00:00
spd_ddr2.h remaining fixes for log2. Simple prototype added to spd_ddr2.h 2008-08-31 20:39:48 +00:00
spinlock.h Remove superfluous checks for boolean CONFIG_* variables where we tested 2008-02-14 22:34:40 +00:00
string.h The ABI wrapper from r775 made the SHARED definitions obsolete. They're 2008-08-17 21:51:13 +00:00
tables.h the multiboot map is generated too early in 2008-10-17 22:49:43 +00:00
uart8250.h Use the same naming convention and placement for "include guards" in 2007-05-21 06:48:47 +00:00