X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/5d41c77c6fd2433c8c52d3f611716d6920017215..99182958d6e499bf78e5c496db45a7bfffba4504:/aseg/firstrun.c?ds=sidebyside diff --git a/aseg/firstrun.c b/aseg/firstrun.c index e0e2904..6df8d7d 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,7 @@ void __firstrun_start() { for (bp = (void *)&_bss; (void *)bp < (void *)&_bssend; bp++) *bp = 0; - dologf("NetWatch running"); + 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 +34,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);