X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/5d41c77c6fd2433c8c52d3f611716d6920017215..692f070ede4a413337c573b8d1592f0f5d1ea7ed:/aseg/firstrun.c?ds=sidebyside 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); }