2 * Bootstrap code for the INTEL
6 #include <console/console.h>
8 #include <pc80/mc146818rtc.h>
11 static int initialized;
13 /* initialize the console */
14 void console_init(void)
16 struct console_driver *driver;
17 if(get_option(&console_loglevel, "debug_level"))
18 console_loglevel=DEFAULT_CONSOLE_LOGLEVEL;
20 for(driver = console_drivers; driver < econsole_drivers; driver++) {
28 static void __console_tx_byte(unsigned char byte)
30 struct console_driver *driver;
31 for(driver = console_drivers; driver < econsole_drivers; driver++) {
32 driver->tx_byte(byte);
36 void console_tx_flush(void)
38 struct console_driver *driver;
39 for(driver = console_drivers; driver < econsole_drivers; driver++) {
40 if (!driver->tx_flush)
46 void console_tx_byte(unsigned char byte)
51 __console_tx_byte('\r');
52 __console_tx_byte(byte);
56 * Write POST information
58 void post_code(uint8_t value)
60 #if CONFIG_SERIAL_POST==1
61 printk_info("POST: 0x%02x\n", value);
62 #elsif !define(NO_POST)
67 /* Report a fatal error */
70 printk_emerg("%s", msg);