2003-04-22 21:02:15 +02:00
|
|
|
#include <console/loglevel.h>
|
|
|
|
|
2006-10-05 00:56:21 +02:00
|
|
|
#if CONFIG_USE_PRINTK_IN_CAR == 0
|
2003-04-22 21:02:15 +02:00
|
|
|
static void __console_tx_byte(unsigned char byte)
|
|
|
|
{
|
|
|
|
uart_tx_byte(byte);
|
|
|
|
}
|
|
|
|
|
2007-03-02 15:21:09 +01:00
|
|
|
#include "console_print.c"
|
2003-04-22 21:02:15 +02:00
|
|
|
|
2005-12-02 22:52:30 +01:00
|
|
|
#else
|
2007-04-06 21:57:42 +02:00
|
|
|
/* CONFIG_USE_PRINTK_IN_CAR == 1 */
|
2005-07-06 19:17:25 +02:00
|
|
|
|
2007-03-02 15:21:09 +01:00
|
|
|
#include "console_printk.c"
|
2005-07-06 19:17:25 +02:00
|
|
|
|
2008-08-03 12:35:06 +02:00
|
|
|
#if CONFIG_USE_INIT == 0
|
2007-04-06 21:57:42 +02:00
|
|
|
// do_printk
|
|
|
|
#include "../../../console/vtxprintf.c"
|
|
|
|
#include "printk_init.c"
|
2008-08-03 12:35:06 +02:00
|
|
|
#endif
|
2007-04-06 21:57:42 +02:00
|
|
|
|
|
|
|
#endif /* CONFIG_USE_PRINTK_IN_CAR */
|
2004-11-11 07:53:24 +01:00
|
|
|
|
2008-01-18 16:08:58 +01:00
|
|
|
#ifndef COREBOOT_EXTRA_VERSION
|
|
|
|
#define COREBOOT_EXTRA_VERSION ""
|
2003-04-22 21:02:15 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
static void console_init(void)
|
|
|
|
{
|
|
|
|
static const char console_test[] =
|
2008-01-18 16:08:58 +01:00
|
|
|
"\r\n\r\ncoreboot-"
|
|
|
|
COREBOOT_VERSION
|
|
|
|
COREBOOT_EXTRA_VERSION
|
2003-04-22 21:02:15 +02:00
|
|
|
" "
|
2008-01-18 16:08:58 +01:00
|
|
|
COREBOOT_BUILD
|
2003-04-22 21:02:15 +02:00
|
|
|
" starting...\r\n";
|
|
|
|
print_info(console_test);
|
|
|
|
}
|
2003-06-11 23:55:00 +02:00
|
|
|
|
|
|
|
|
|
|
|
static void die(const char *str)
|
|
|
|
{
|
|
|
|
print_emerg(str);
|
|
|
|
do {
|
|
|
|
hlt();
|
|
|
|
} while(1);
|
|
|
|
}
|