From c8049a88a3ea4a5d8b4144f7f053d712815b75ce Mon Sep 17 00:00:00 2001 From: Alex Smith Date: Mon, 9 Jul 2012 17:42:34 +0100 Subject: [PATCH] Enabled hardware interrupt handler, timers now work and threads are preempted. --- src/system/kernel/arch/x86/arch_int.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/system/kernel/arch/x86/arch_int.cpp b/src/system/kernel/arch/x86/arch_int.cpp index 3fdee860d3..a7ecd656b1 100644 --- a/src/system/kernel/arch/x86/arch_int.cpp +++ b/src/system/kernel/arch/x86/arch_int.cpp @@ -45,7 +45,6 @@ static const interrupt_controller* sCurrentPIC = NULL; void hardware_interrupt(struct iframe* frame) { -#ifndef __x86_64__ int32 vector = frame->vector - ARCH_INTERRUPT_BASE; bool levelTriggered = false; Thread* thread = thread_get_current_thread(); @@ -88,10 +87,6 @@ hardware_interrupt(struct iframe* frame) callback(data); } -#else - return; - panic("implement me"); -#endif } @@ -156,11 +151,10 @@ arch_int_are_interrupts_enabled(void) status_t arch_int_init_io(kernel_args* args) { + // TODO x86_64 #ifndef __x86_64__ ioapic_init(args); msi_init(); -#else - //panic("implement me"); #endif return B_OK; }