2 * Bootstrap code for the INTEL
8 #include <console/console.h>
10 #include <pc80/mc146818rtc.h>
13 static int initialized;
15 /* initialize the console */
16 void console_init(void)
18 struct console_driver *driver;
19 if(get_option(&console_loglevel, "debug_level"))
20 console_loglevel=DEFAULT_CONSOLE_LOGLEVEL;
22 for(driver = console_drivers; driver < econsole_drivers; driver++) {
30 static void __console_tx_byte(unsigned char byte)
32 struct console_driver *driver;
33 for(driver = console_drivers; driver < econsole_drivers; driver++) {
34 driver->tx_byte(byte);
38 void console_tx_flush(void)
40 struct console_driver *driver;
41 for(driver = console_drivers; driver < econsole_drivers; driver++) {
42 if (!driver->tx_flush)
48 void console_tx_byte(unsigned char byte)
53 __console_tx_byte('\r');
54 __console_tx_byte(byte);
58 * Write POST information
60 void post_code(uint8_t value)
62 #ifdef CONFIG_SERIAL_POST
63 printk_info("POST: 0x%02x\n", value);
64 #elsif !define(NO_POST)
69 /* Report a fatal error */
72 printk_emerg("%s", msg);