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 |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 4 | static void __console_tx_byte(unsigned char byte) |
5 | { | ||||
6 | uart_tx_byte(byte); | ||||
7 | } | ||||
8 | |||||
Carl-Daniel Hailfinger | a81bb03 | 2007-03-02 14:21:09 +0000 | [diff] [blame^] | 9 | #include "console_print.c" |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 10 | |
Stefan Reinauer | 7ce8c54 | 2005-12-02 21:52:30 +0000 | [diff] [blame] | 11 | #else |
12 | /* CONFIG_USE_INIT == 1 */ | ||||
arch import user (historical) | 6ca7636 | 2005-07-06 17:17:25 +0000 | [diff] [blame] | 13 | |
Carl-Daniel Hailfinger | a81bb03 | 2007-03-02 14:21:09 +0000 | [diff] [blame^] | 14 | #include "console_printk.c" |
arch import user (historical) | 6ca7636 | 2005-07-06 17:17:25 +0000 | [diff] [blame] | 15 | |
Stefan Reinauer | 7ce8c54 | 2005-12-02 21:52:30 +0000 | [diff] [blame] | 16 | #endif /* CONFIG_USE_INIT */ |
Eric Biederman | 69afe28 | 2004-11-11 06:53:24 +0000 | [diff] [blame] | 17 | |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 18 | #ifndef LINUXBIOS_EXTRA_VERSION |
Eric Biederman | b78c197 | 2004-10-14 20:54:17 +0000 | [diff] [blame] | 19 | #define LINUXBIOS_EXTRA_VERSION "" |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 20 | #endif |
21 | |||||
Stefan Reinauer | 7ce8c54 | 2005-12-02 21:52:30 +0000 | [diff] [blame] | 22 | |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 23 | static void console_init(void) |
24 | { | ||||
25 | static const char console_test[] = | ||||
26 | "\r\n\r\nLinuxBIOS-" | ||||
Eric Biederman | b78c197 | 2004-10-14 20:54:17 +0000 | [diff] [blame] | 27 | LINUXBIOS_VERSION |
28 | LINUXBIOS_EXTRA_VERSION | ||||
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 29 | " " |
Eric Biederman | b78c197 | 2004-10-14 20:54:17 +0000 | [diff] [blame] | 30 | LINUXBIOS_BUILD |
Eric Biederman | 8ca8d76 | 2003-04-22 19:02:15 +0000 | [diff] [blame] | 31 | " starting...\r\n"; |
32 | print_info(console_test); | ||||
33 | } | ||||
Eric Biederman | 05f26fc | 2003-06-11 21:55:00 +0000 | [diff] [blame] | 34 | |
35 | |||||
36 | static void die(const char *str) | ||||
37 | { | ||||
38 | print_emerg(str); | ||||
39 | do { | ||||
40 | hlt(); | ||||
41 | } while(1); | ||||
42 | } |