X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/34f6af4f61e0eec9c96113e07f140b609b4113c8..71e44ac5296a7819554ce50b79129d64fd740e8f:/lunaix-os/arch/x86/arch.c diff --git a/lunaix-os/arch/x86/arch.c b/lunaix-os/arch/x86/arch.c index 533ded9..1d68e15 100644 --- a/lunaix-os/arch/x86/arch.c +++ b/lunaix-os/arch/x86/arch.c @@ -1,6 +1,5 @@ #include -#include #include #include @@ -13,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