fix page mounting contention (close #57)
[lunaix-os.git] / lunaix-os / arch / x86 / arch.c
index f29b59840941128b9a5dd912d6691997f243e146..1d68e15518550c18b49da27043ce18b22caba38a 100644 (file)
@@ -3,8 +3,6 @@
 #include <lunaix/spike.h>
 #include <lunaix/process.h>
 
-#include <asm/x86_isrm.h>
-
 #include "asm/x86.h"
 #include "asm/hart.h"
 
@@ -14,34 +12,12 @@ void
 exception_init()
 {
     exception_install_handler();
-    isrm_init();
-    intr_routine_init();
 }
 
-extern void
-syscall_hndlr(const struct hart_state* hstate);
-
 void
 arch_preinit()
 {
     exception_init();
-
-    isrm_bindiv(LUNAIX_SYS_CALL, syscall_hndlr);
-}
-
-struct hwtimer*
-select_platform_timer()
-{
-    struct hwtimer* timer;
-
-    timer = apic_hwtimer_context();
-    if (timer->supported(timer)) {
-        return timer;
-    }
-
-    // TODO select alternatives...
-
-    fail("no timer to use.");
 }
 
 void