aboutsummaryrefslogtreecommitdiff
path: root/src/arch/x86/ioapic.c
diff options
context:
space:
mode:
authorMarc Jones <marc.jones@scarletltd.com>2018-03-31 22:45:35 -0600
committerPatrick Georgi <pgeorgi@google.com>2018-04-09 09:29:51 +0000
commitf7dc972fde66d93143c3f6927087c13ae74a4828 (patch)
tree31f81790434b4d17fbc5d15f5a8e1edd6cf9fd29 /src/arch/x86/ioapic.c
parent4764be33e04aacc6f22645249046ed0524aaa529 (diff)
ioapic: extend definition name to avoid collision
Change EN/DISABLED to INT_EN/DISABLED to avoid collision with other EN/DISABLE definition. Change-Id: I85b1c544d0f31340a09e18f4b36c1942ea0fa6ef Signed-off-by: Marc Jones <marc.jones@scarletltd.com> Reviewed-on: https://review.coreboot.org/25540 Reviewed-by: Martin Roth <martinroth@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch/x86/ioapic.c')
-rw-r--r--src/arch/x86/ioapic.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/x86/ioapic.c b/src/arch/x86/ioapic.c
index dba49c06b8..7bd52f566e 100644
--- a/src/arch/x86/ioapic.c
+++ b/src/arch/x86/ioapic.c
@@ -53,7 +53,7 @@ void clear_ioapic(void *ioapic_base)
ioapic_interrupts = ioapic_interrupt_count(ioapic_base);
- low = DISABLED;
+ low = INT_DISABLED;
high = NONE;
for (i = 0; i < ioapic_interrupts; i++) {
@@ -118,7 +118,7 @@ static void load_vectors(void *ioapic_base)
}
/* Enable Virtual Wire Mode. */
- low = ENABLED | TRIGGER_EDGE | POLARITY_HIGH | PHYSICAL_DEST | ExtINT;
+ low = INT_ENABLED | TRIGGER_EDGE | POLARITY_HIGH | PHYSICAL_DEST | ExtINT;
high = bsp_lapicid << (56 - 32);
io_apic_write(ioapic_base, 0x10, low);
@@ -131,7 +131,7 @@ static void load_vectors(void *ioapic_base)
printk(BIOS_SPEW, "IOAPIC: reg 0x%08x value 0x%08x 0x%08x\n",
0, high, low);
- low = DISABLED;
+ low = INT_DISABLED;
high = NONE;
for (i = 1; i < ioapic_interrupts; i++) {
io_apic_write(ioapic_base, i * 2 + 0x10, low);