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
|
|
|
|
/* CONFIG_USE_INIT == 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
|
|
|
|
2005-12-02 22:52:30 +01:00
|
|
|
#endif /* CONFIG_USE_INIT */
|
2004-11-11 07:53:24 +01:00
|
|
|
|
2003-04-22 21:02:15 +02:00
|
|
|
#ifndef LINUXBIOS_EXTRA_VERSION
|
2004-10-14 22:54:17 +02:00
|
|
|
#define LINUXBIOS_EXTRA_VERSION ""
|
2003-04-22 21:02:15 +02:00
|
|
|
#endif
|
|
|
|
|
2005-12-02 22:52:30 +01:00
|
|
|
|
2003-04-22 21:02:15 +02:00
|
|
|
static void console_init(void)
|
|
|
|
{
|
|
|
|
static const char console_test[] =
|
|
|
|
"\r\n\r\nLinuxBIOS-"
|
2004-10-14 22:54:17 +02:00
|
|
|
LINUXBIOS_VERSION
|
|
|
|
LINUXBIOS_EXTRA_VERSION
|
2003-04-22 21:02:15 +02:00
|
|
|
" "
|
2004-10-14 22:54:17 +02:00
|
|
|
LINUXBIOS_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);
|
|
|
|
}
|