diff options
Diffstat (limited to 'core/minute-ia/interrupts.c')
-rw-r--r-- | core/minute-ia/interrupts.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/minute-ia/interrupts.c b/core/minute-ia/interrupts.c index 8fc5b2f9e9..a4a3569c22 100644 --- a/core/minute-ia/interrupts.c +++ b/core/minute-ia/interrupts.c @@ -233,11 +233,11 @@ uint32_t get_current_interrupt_vector(void) uint32_t vec; /* In service register */ - uint32_t *ioapic_icr_last = (uint32_t *)LAPIC_ISR_REG; + volatile uint32_t *ioapic_isr_last = &LAPIC_ISR_LAST_REG; /* Scan ISRs from highest priority */ - for (i = 7; i >= 0; i--, ioapic_icr_last -= 4) { - vec = *ioapic_icr_last; + for (i = 7; i >= 0; i--, ioapic_isr_last -= 4) { + vec = *ioapic_isr_last; if (vec) { return (32 * i) + __fls(vec); } |