Architectural Support: x86_64 (#37)
[lunaix-os.git] / lunaix-os / arch / i386 / arch.c
diff --git a/lunaix-os/arch/i386/arch.c b/lunaix-os/arch/i386/arch.c
deleted file mode 100644 (file)
index 5ad6cd7..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#include <hal/hwtimer.h>
-
-#include <lunaix/generic/isrm.h>
-#include <lunaix/spike.h>
-
-#include "sys/i386_intr.h"
-#include "sys/hart.h"
-
-#include "hal/apic_timer.h"
-
-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...
-
-    panick("no timer to use.");
-}
\ No newline at end of file