X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/73fb9b4cd8d1b1722077985594e50dd38893ca5f..5380145d8d28af491c40a3ac1934c953938418e5:/aseg/firstrun.c diff --git a/aseg/firstrun.c b/aseg/firstrun.c index e0e2904..d3cd16f 100644 --- a/aseg/firstrun.c +++ b/aseg/firstrun.c @@ -2,8 +2,10 @@ #include #include #include +#include #include "vga-overlay.h" #include +#include "../net/net.h" extern int _bss, _bssend; @@ -21,7 +23,9 @@ void __firstrun_start() { for (bp = (void *)&_bss; (void *)bp < (void *)&_bssend; bp++) *bp = 0; - dologf("NetWatch running"); + vga_flush_imm(0); + + outputf("NetWatch running"); /* Try really hard to shut up USB_LEGKEY. */ pci_write16(0, 31, 2, 0xC0, pci_read16(0, 31, 2, 0xC0)); @@ -32,6 +36,8 @@ void __firstrun_start() { /* Turn on the SMIs we want */ smi_disable(); + eth_init(); + smi_register_handler(SMI_EVENT_FAST_TIMER, timer_handler); smi_enable_event(SMI_EVENT_FAST_TIMER); @@ -43,6 +49,8 @@ void __firstrun_start() { smi_enable(); + vga_flush_imm(1); + smram_restore_state(smram); }