switch-coreboot/include/arch/x86
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
..
amd/k8 Add functions to print routes. 2008-10-21 03:20:05 +00:00
arch Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
amd_geodelx.h Documentation improvement for sys_info. 2008-08-28 01:31:24 +00:00
byteorder.h Use the same naming convention and placement for "include guards" in 2007-05-21 06:48:47 +00:00
cpu.h We are woefully unaware about how much stack v3 really uses. 2008-11-13 01:28:32 +00:00
div64.h Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
io.h Use the same naming convention and placement for "include guards" in 2007-05-21 06:48:47 +00:00
lapic.h This is closer! There are < 10 functions to be worked out, so most of 2008-08-29 04:33:56 +00:00
lapic_def.h Add lapic defines and support. 2008-08-11 23:02:34 +00:00
legacy.h Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
macros.h Minor cosmetic and/or license header fixes (trivial). 2008-08-11 21:01:54 +00:00
msr.h A lot of the v3 header files require other header files to be #included 2008-02-19 00:34:32 +00:00
mtrr.h The m57sli almost builds. It's pretty empty. The dtc is not run . 2008-08-01 17:03:22 +00:00
multiboot.h Signed-off-by: Robert Millan <rmh@aybabtu.com> 2008-09-24 14:54:33 +00:00
pci_ops.h This patch removes code related to PCI type 2 configuration cycles (gone as of 2008-11-05 22:18:53 +00:00
pciconf.h Remove dead code protected by #if 0 since it appeared. 2008-02-15 23:58:09 +00:00
pirq_routing.h Minor cosmetic and/or license header fixes (trivial). 2008-08-11 21:01:54 +00:00
qemu.h Fix for globals for qemu. 2008-08-28 02:32:27 +00:00
stage1.h Right now we face the problem that we can't support processors which 2008-10-16 03:00:28 +00:00
swab.h Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
types.h Use the same naming convention and placement for "include guards" in 2007-05-21 06:48:47 +00:00
via_c7.h All of these CPUS have 32 address bits in all cases. Move this to the cpu.h 2008-10-31 18:56:53 +00:00