X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/ed22a6995cddb7b61503fdca859267ef85b3bdd3..807268084f8cf4b02aaaa7ece7071a276c9d61bc:/aseg-paging/traps.c?ds=sidebyside diff --git a/aseg-paging/traps.c b/aseg-paging/traps.c index 8184bdb..f41068f 100644 --- a/aseg-paging/traps.c +++ b/aseg-paging/traps.c @@ -92,7 +92,7 @@ void traps_install(void) { struct pseudo_descriptor pdesc; pdesc.limit = sizeof(idt) - 1; - pdesc.linear_base = memory_v2p(&idt); + pdesc.linear_base = v2p(&idt); WRAPPER_INSTALL(idt, TRAP, fault_divide, T_DIVIDE_ERROR); WRAPPER_INSTALL(idt, TRAP, fault_gp, T_GENERAL_PROTECTION);