X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/9e2a82e4e9495f33b8e6423c335a9a157f056254..113df320fe8e5e3f069c974546162d9329da8e31:/aseg-paging/smi.c diff --git a/aseg-paging/smi.c b/aseg-paging/smi.c index 33536eb..9bc124e 100644 --- a/aseg-paging/smi.c +++ b/aseg-paging/smi.c @@ -4,6 +4,7 @@ #include #include #include +#include #include "../net/net.h" #include "vga-overlay.h" @@ -49,6 +50,9 @@ void smi_entry(void) strblit(statstr, 0, 0); outb(0x80, 0x4B); + serial_init(); + dolog("wee!"); + /* eth_poll(); */ @@ -62,9 +66,9 @@ void smi_entry(void) outl(0x840, 0x0100); } -/* + smi_poll(); - +/* pci_bother_all(); */ outl(0xCF8, pcisave); @@ -85,6 +89,10 @@ void timer_handler(smi_event_t ev) void __firstrun_start() { + smram_state_t smram; + + smram = smram_save_state(); + smram_tseg_set_state(SMRAM_TSEG_OPEN); smi_disable(); outb(0x80, 0x41);