1 #include <hal/hwtimer.h>
3 #include <lunaix/spike.h>
4 #include <lunaix/process.h>
6 #include <asm/x86_isrm.h>
11 #include "hal/apic_timer.h"
16 exception_install_handler();
22 syscall_hndlr(const struct hart_state* hstate);
29 isrm_bindiv(LUNAIX_SYS_CALL, syscall_hndlr);
35 extern struct x86_tss _tss;
36 #ifdef CONFIG_ARCH_X86_64
37 _tss.rsps[0] = (ptr_t)current_thread->hstate;
39 _tss.esp0 = (u32_t)current_thread->hstate;