X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/722e5aea4f6704ee7a3e7779c5326c157a98195b..6f9272bdabcda81425ec1aaecf26a160535d4749:/aseg-paging/pagingstub.c diff --git a/aseg-paging/pagingstub.c b/aseg-paging/pagingstub.c index d839966..0115713 100644 --- a/aseg-paging/pagingstub.c +++ b/aseg-paging/pagingstub.c @@ -5,6 +5,7 @@ #include #include #include +#include "traps.h" #include "../net/net.h" #include "vga-overlay.h" @@ -114,6 +115,7 @@ void c_entry(void) set_cr0(get_cr0() | CR0_PG); outb(0x80, 0x43); + if (!entry_initialized) { /* If needed, copy in data. */ @@ -123,6 +125,11 @@ void c_entry(void) *bp = 0; serial_init(); dolog("Paging enabled."); + } + + traps_install(); + + if (!entry_initialized) { smi_init(); entry_initialized = 1;