]> Joshua Wise's Git repositories - netwatch.git/blobdiff - aseg-paging/pagingstub.c
Enable DHCP.
[netwatch.git] / aseg-paging / pagingstub.c
index 0a79385a31c0cdeaf1377752bae8b170956f441d..0115713bf93d29e4e990243aade030bb27a22a36 100644 (file)
@@ -5,11 +5,12 @@
 #include <smi.h>
 #include <pci-bother.h>
 #include <serial.h>
 #include <smi.h>
 #include <pci-bother.h>
 #include <serial.h>
+#include "traps.h"
 #include "../net/net.h"
 #include "vga-overlay.h"
 
 #include "../net/net.h"
 #include "vga-overlay.h"
 
+extern void smi_init();
 #include "vm_flags.h"
 #include "vm_flags.h"
-#include "pagetable.h"
 
 void set_cr0(unsigned int);
 void ps_switch_stack (void (*call)(), int stack);
 
 void set_cr0(unsigned int);
 void ps_switch_stack (void (*call)(), int stack);
@@ -114,8 +115,8 @@ void c_entry(void)
        set_cr0(get_cr0() | CR0_PG);
        
        outb(0x80, 0x43);
        set_cr0(get_cr0() | CR0_PG);
        
        outb(0x80, 0x43);
+
        if (!entry_initialized) {
        if (!entry_initialized) {
-               extern void __firstrun_start();
                
                /* If needed, copy in data. */
                for (bp = (void *)0x200000; (void *)bp < (void *)&_bss; bp++)
                
                /* If needed, copy in data. */
                for (bp = (void *)0x200000; (void *)bp < (void *)&_bss; bp++)
@@ -124,7 +125,12 @@ void c_entry(void)
                        *bp = 0;
                serial_init();
                dolog("Paging enabled.");
                        *bp = 0;
                serial_init();
                dolog("Paging enabled.");
-               __firstrun_start();     /* Now initialize BSS, etc. */
+       }
+
+       traps_install();
+
+       if (!entry_initialized) {
+               smi_init();
                
                entry_initialized = 1;
        }
                
                entry_initialized = 1;
        }
This page took 0.020424 seconds and 4 git commands to generate.