Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 1 | #include <console/loglevel.h> |
2 | |||||
Yinghai Lu | 5f9624d | 2006-10-04 22:56:21 +0000 | [diff] [blame] | 3 | #if CONFIG_USE_PRINTK_IN_CAR == 0 |
Carl-Daniel Hailfinger | a81bb03 | 2007-03-02 14:21:09 +0000 | [diff] [blame] | 4 | #include "console_print.c" |
Stefan Reinauer | 52fc6b1 | 2009-10-24 13:06:04 +0000 | [diff] [blame^] | 5 | #else /* CONFIG_USE_PRINTK_IN_CAR == 1 */ |
Carl-Daniel Hailfinger | a81bb03 | 2007-03-02 14:21:09 +0000 | [diff] [blame] | 6 | #include "console_printk.c" |
Yinghai Lu | 30b4abe | 2007-04-06 19:57:42 +0000 | [diff] [blame] | 7 | #endif /* CONFIG_USE_PRINTK_IN_CAR */ |
Eric Biederman | 69afe28 | 2004-11-11 06:53:24 +0000 | [diff] [blame] | 8 | |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 9 | #ifndef COREBOOT_EXTRA_VERSION |
10 | #define COREBOOT_EXTRA_VERSION "" | ||||
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 11 | #endif |
12 | |||||
13 | static void console_init(void) | ||||
14 | { | ||||
15 | static const char console_test[] = | ||||
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 16 | "\r\n\r\ncoreboot-" |
17 | COREBOOT_VERSION | ||||
18 | COREBOOT_EXTRA_VERSION | ||||
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 19 | " " |
Stefan Reinauer | f8ee180 | 2008-01-18 15:08:58 +0000 | [diff] [blame] | 20 | COREBOOT_BUILD |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 21 | " starting...\r\n"; |
22 | print_info(console_test); | ||||
23 | } | ||||
Eric Biederman | 05f26fc | 2003-06-11 21:55:00 +0000 | [diff] [blame] | 24 | |
25 | |||||
Stefan Reinauer | 52fc6b1 | 2009-10-24 13:06:04 +0000 | [diff] [blame^] | 26 | void die(const char *str) |
Eric Biederman | 05f26fc | 2003-06-11 21:55:00 +0000 | [diff] [blame] | 27 | { |
28 | print_emerg(str); | ||||
29 | do { | ||||
30 | hlt(); | ||||
31 | } while(1); | ||||
32 | } |