X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/e9fda657d5cb6f6619605766618aa78edd97f6a9..43487eff262637a59a4c2c0272d7c4a824af3944:/lunaix-os/arch/x86/arch.c diff --git a/lunaix-os/arch/x86/arch.c b/lunaix-os/arch/x86/arch.c index f29b598..1d68e15 100644 --- a/lunaix-os/arch/x86/arch.c +++ b/lunaix-os/arch/x86/arch.c @@ -3,8 +3,6 @@ #include #include -#include - #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