]> Joshua Wise's Git repositories - netwatch.git/blobdiff - aseg-paging/smi.c
Working serial output in pagingland. Continues to run, too.
[netwatch.git] / aseg-paging / smi.c
index 33536ebb1be5e48fb1d5668b2dc021fb3db8cff7..9bc124eba642396ba246ec8c3dcd063917e9cce1 100644 (file)
@@ -4,6 +4,7 @@
 #include <minilib.h>
 #include <smi.h>
 #include <pci-bother.h>
+#include <serial.h>
 #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);
 
This page took 0.023978 seconds and 4 git commands to generate.