Changes in kernel/arch/ia32/src/smp/apic.c [2a103b5:ef56a43] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/src/smp/apic.c
r2a103b5 ref56a43 47 47 #include <arch.h> 48 48 #include <ddi/irq.h> 49 #include <genarch/pic/pic_ops.h>50 49 51 50 #ifdef CONFIG_SMP … … 63 62 * 64 63 */ 65 66 static const char *apic_get_name(void);67 static bool l_apic_is_spurious(unsigned int);68 static void l_apic_handle_spurious(unsigned int);69 70 pic_ops_t apic_pic_ops = {71 .get_name = apic_get_name,72 .enable_irqs = io_apic_enable_irqs,73 .disable_irqs = io_apic_disable_irqs,74 .eoi = l_apic_eoi,75 .is_spurious = l_apic_is_spurious,76 .handle_spurious = l_apic_handle_spurious,77 };78 64 79 65 /* … … 139 125 #endif /* LAPIC_VERBOSE */ 140 126 141 const char *apic_get_name(void)142 {143 return "apic";144 }145 146 bool l_apic_is_spurious(unsigned int n)147 {148 return n == VECTOR_APIC_SPUR;149 }150 151 void l_apic_handle_spurious(unsigned int n)152 {153 }154 155 127 /** APIC spurious interrupt handler. 156 128 * … … 162 134 istate_t *istate __attribute__((unused))) 163 135 { 136 #ifdef CONFIG_DEBUG 137 log(LF_ARCH, LVL_DEBUG, "cpu%u: APIC spurious interrupt", CPU->id); 138 #endif 164 139 } 165 140 … … 200 175 (iroutine_t) apic_spurious); 201 176 202 pic_ops = &apic_pic_ops; 177 enable_irqs_function = io_apic_enable_irqs; 178 disable_irqs_function = io_apic_disable_irqs; 179 eoi_function = l_apic_eoi; 180 irqs_info = "apic"; 203 181 204 182 /*
Note:
See TracChangeset
for help on using the changeset viewer.