X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/28c176b668c841a3b7fb093faccf0efa39257603..6942ebae59c3904674dce6b67cd07c43a3bbe00d:/lunaix-os/arch/x86/arch.c diff --git a/lunaix-os/arch/x86/arch.c b/lunaix-os/arch/x86/arch.c index 988f976..e98bdd9 100644 --- a/lunaix-os/arch/x86/arch.c +++ b/lunaix-os/arch/x86/arch.c @@ -1,12 +1,12 @@ #include -#include #include #include -#include "sys/int_handler.h" -#include "sys/x86_isa.h" -#include "sys/hart.h" +#include + +#include "asm/x86.h" +#include "asm/hart.h" #include "hal/apic_timer.h" @@ -29,21 +29,6 @@ arch_preinit() 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."); -} - void update_tss() {