summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arch/x86/ioapic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/ioapic.c b/src/arch/x86/ioapic.c
index d299e6070d..d65637c662 100644
--- a/src/arch/x86/ioapic.c
+++ b/src/arch/x86/ioapic.c
@@ -59,7 +59,7 @@ void ioapic_set_max_vectors(void *ioapic_base, int mre_count)
count = mre_count - 1;
reg &= ~(0xff << 16);
reg |= count << 16;
- io_apic_write(ioapic_base, 0x01, count);
+ io_apic_write(ioapic_base, 0x01, reg);
}
void ioapic_lock_max_vectors(void *ioapic_base)