a81bb03b79
overview of the code, facilitate future cleanups and reduce the diff to Yinghai's tree at the same time. No functional changes, only moving lines between files. Copyright headers will be added later. Right now we benefit from keeping the diff as small as possible. Most of the work was done by Yinghai Lu. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2567 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
42 lines
640 B
C
42 lines
640 B
C
#include <console/loglevel.h>
|
|
|
|
#if CONFIG_USE_PRINTK_IN_CAR == 0
|
|
static void __console_tx_byte(unsigned char byte)
|
|
{
|
|
uart_tx_byte(byte);
|
|
}
|
|
|
|
#include "console_print.c"
|
|
|
|
#else
|
|
/* CONFIG_USE_INIT == 1 */
|
|
|
|
#include "console_printk.c"
|
|
|
|
#endif /* CONFIG_USE_INIT */
|
|
|
|
#ifndef LINUXBIOS_EXTRA_VERSION
|
|
#define LINUXBIOS_EXTRA_VERSION ""
|
|
#endif
|
|
|
|
|
|
static void console_init(void)
|
|
{
|
|
static const char console_test[] =
|
|
"\r\n\r\nLinuxBIOS-"
|
|
LINUXBIOS_VERSION
|
|
LINUXBIOS_EXTRA_VERSION
|
|
" "
|
|
LINUXBIOS_BUILD
|
|
" starting...\r\n";
|
|
print_info(console_test);
|
|
}
|
|
|
|
|
|
static void die(const char *str)
|
|
{
|
|
print_emerg(str);
|
|
do {
|
|
hlt();
|
|
} while(1);
|
|
}
|