diff options
Diffstat (limited to 'src/arch/i386/lib')
-rw-r--r-- | src/arch/i386/lib/printk_init.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/arch/i386/lib/printk_init.c b/src/arch/i386/lib/printk_init.c index f29ba667f1..2f7f751832 100644 --- a/src/arch/i386/lib/printk_init.c +++ b/src/arch/i386/lib/printk_init.c @@ -21,8 +21,17 @@ #include <console/vtxprintf.h> #include <uart8250.h> +#if CONFIG_CONSOLE_NE2K +#include <console/ne2k.h> +#endif + static void console_tx_byte(unsigned char byte) { +#if CONFIG_CONSOLE_NE2K +#ifdef __PRE_RAM__ + ne2k_append_data(&byte, 1, CONFIG_CONSOLE_NE2K_IO_PORT); +#endif +#endif if (byte == '\n') uart8250_tx_byte(CONFIG_TTYS0_BASE, '\r'); @@ -41,6 +50,8 @@ int do_printk(int msg_level, const char *fmt, ...) va_start(args, fmt); i = vtxprintf(console_tx_byte, fmt, args); va_end(args); - +#if CONFIG_CONSOLE_NE2K + ne2k_transmit(CONFIG_CONSOLE_NE2K_IO_PORT); +#endif return i; } |