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