6d07e1670b483f36687aa28d55397b00e1e2d3b8
[coreboot.git] / src / arch / i386 / lib / console.c
1 #include <build.h>
2 #include <console/loglevel.h>
3
4 #if CONFIG_USE_PRINTK_IN_CAR == 0
5 #include "console_print.c"
6 #else  /* CONFIG_USE_PRINTK_IN_CAR == 1 */
7 #include <console/console.h>
8 #include "console_printk.c"
9 #endif /* CONFIG_USE_PRINTK_IN_CAR */
10
11 void console_init(void)
12 {
13         static const char console_test[] = 
14                 "\r\n\r\ncoreboot-"
15                 COREBOOT_VERSION
16                 COREBOOT_EXTRA_VERSION
17                 " "
18                 COREBOOT_BUILD
19                 " starting...\r\n";
20         print_info(console_test);
21 }
22
23 void die(const char *str)
24 {
25         print_emerg(str);
26         do {
27                 hlt();
28         } while(1);
29 }