switch-coreboot/lib
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
..
clog2.c log2 is now log2f (floor) and log2c (ceiling) and users MUST pick one or 2008-08-31 20:28:21 +00:00
compute_ip_checksum.c Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
console.c We are woefully unaware about how much stack v3 really uses. 2008-11-13 01:28:32 +00:00
delay.c This now compiles and has a simple error on build to stage2. 2008-08-23 16:51:00 +00:00
elfboot.c Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
Kconfig Add log levels to the output. In order to use this enable EXPERT and CONSOLE_LOG_LEVEL. 2008-10-13 20:15:56 +00:00
lar.c Fix a bunch of Doxygen warnings in v3 (trivial). 2008-10-23 18:55:01 +00:00
lzma.c Fix a typo in r684 which caused compilation to fail. Trivial. 2008-05-23 19:59:43 +00:00
lzmadecode.c * This patch renames remainders the arch i386 to x86. 2007-01-04 20:12:02 +00:00
lzmadecode.h Use the same naming convention and placement for "include guards" in 2007-05-21 06:48:47 +00:00
Makefile Change v3 makefile rules to be source-based, part I. 2008-08-18 11:15:43 +00:00
mem.c Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
nrv2b.c - fix build of ulzma 2007-07-12 20:03:02 +00:00
ram.c Various cosmetic fixes, added Doxygen comments (trivial). 2008-03-06 18:26:45 +00:00
ramtest.c Minor cosmetic and/or license header fixes (trivial). 2008-08-11 21:01:54 +00:00
stage2.c the multiboot map is generated too early in 2008-10-17 22:49:43 +00:00
string.c Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
tables.c the multiboot map is generated too early in 2008-10-17 22:49:43 +00:00
uart8250.c Massive file rename and moving orgy: 2007-05-05 21:36:52 +00:00
vsprintf.c Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
vtxprintf.c Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00