switch-coreboot/lib
Carl-Daniel Hailfinger 5d11489d74 Make printk() log to a buffer.
Tested on Qemu and Geode LX.
Benefits of this patch:
- printk() now works directly after printk_buffer_init(), even before
the serial port is set up.
- If all you want is a log, you don't have to bother with serial output.
- A payload can read and analyze the log.
- You can build on this and buffer log until serial is available, then
flush the messages buffered so far.

The printk buffer is configurable with a default-on Kconfig variable.

If you want to dump the buffer from the Qemu monitor after CAR has been
disabled, use this command:
memsave 0x90000 65536 memdump.bin

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Peter Stuge <peter@stuge.se>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Marc Jones <marc.jones@amd.com>


git-svn-id: svn://coreboot.org/repository/coreboot-v3@590 f3766cd6-281f-0410-b1cd-43a5c92072e9
2008-02-13 15:48:37 +00:00
..
clog2.c Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
compute_ip_checksum.c Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
console.c Make printk() log to a buffer. 2008-02-13 15:48:37 +00:00
delay.c Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
elfboot.c Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
Kconfig Make printk() log to a buffer. 2008-02-13 15:48:37 +00:00
lar.c Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
lzma.c Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +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 Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +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 Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
stage2.c Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
string.c Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +00:00
tables.c Now version 3: LinuxBIOS -> coreboot rename. 2008-01-27 18:54:57 +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