fix lots of warnings for cache as ram builds (trivial)
[coreboot.git] / src / arch / i386 / lib / console.c
1 #include <console/loglevel.h>
2
3 #if CONFIG_USE_PRINTK_IN_CAR == 0
4 static void __console_tx_byte(unsigned char byte)
5 {
6         uart_tx_byte(byte);
7 }
8
9 #include "console_print.c"
10
11 #else  
12 /* CONFIG_USE_PRINTK_IN_CAR == 1 */
13
14 #include "console_printk.c"
15
16 #if CONFIG_USE_INIT == 0
17 // do_printk
18 #include "../../../console/vtxprintf.c"
19 #include "printk_init.c"
20 #endif
21
22 #endif /* CONFIG_USE_PRINTK_IN_CAR */
23
24 #ifndef COREBOOT_EXTRA_VERSION
25 #define COREBOOT_EXTRA_VERSION ""
26 #endif
27
28 static void console_init(void)
29 {
30         static const char console_test[] = 
31                 "\r\n\r\ncoreboot-"
32                 COREBOOT_VERSION
33                 COREBOOT_EXTRA_VERSION
34                 " "
35                 COREBOOT_BUILD
36                 " starting...\r\n";
37         print_info(console_test);
38 }
39
40
41 static void die(const char *str)
42 {
43         print_emerg(str);
44         do {
45                 hlt();
46         } while(1);
47 }