diff --git a/arch/x86/apic.c b/arch/x86/apic.c index 34cf8d28..172cb886 100644 --- a/arch/x86/apic.c +++ b/arch/x86/apic.c @@ -99,8 +99,8 @@ apic_icr_t apic_icr_read(void) { void apic_icr_write(const apic_icr_t *icr) { if (apic_mode == APIC_MODE_XAPIC) { - apic_mmio_write(XAPIC_REG(APIC_ICR1), icr->icr0); - apic_mmio_write(XAPIC_REG(APIC_ICR0), icr->icr1); + apic_mmio_write(XAPIC_REG(APIC_ICR1), icr->icr1); + apic_mmio_write(XAPIC_REG(APIC_ICR0), icr->icr0); } else apic_msr_write(X2APIC_REG(APIC_ICR0), icr->reg);