arch/*: Update Kconfig symbol usage
- Update all symbols to use IS_ENABLED() - Update non-romcc usage to use 'if' instead of '#if' where it makes sense. Change-Id: I5a84414d2d1631e35ac91efb67a0d4c1f673bf85 Signed-off-by: Martin Roth <martinroth@google.com> Reviewed-on: https://review.coreboot.org/20005 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
@@ -103,19 +103,19 @@ static void load_vectors(void *ioapic_base)
|
||||
|
||||
ioapic_interrupts = ioapic_interrupt_count(ioapic_base);
|
||||
|
||||
#if CONFIG_IOAPIC_INTERRUPTS_ON_FSB
|
||||
/*
|
||||
* For the Pentium 4 and above APICs deliver their interrupts
|
||||
* on the front side bus, enable that.
|
||||
*/
|
||||
printk(BIOS_DEBUG, "IOAPIC: Enabling interrupts on FSB\n");
|
||||
io_apic_write(ioapic_base, 0x03,
|
||||
io_apic_read(ioapic_base, 0x03) | (1 << 0));
|
||||
#endif
|
||||
#if CONFIG_IOAPIC_INTERRUPTS_ON_APIC_SERIAL_BUS
|
||||
printk(BIOS_DEBUG, "IOAPIC: Enabling interrupts on APIC serial bus\n");
|
||||
io_apic_write(ioapic_base, 0x03, 0);
|
||||
#endif
|
||||
if (IS_ENABLED(CONFIG_IOAPIC_INTERRUPTS_ON_FSB)) {
|
||||
/*
|
||||
* For the Pentium 4 and above APICs deliver their interrupts
|
||||
* on the front side bus, enable that.
|
||||
*/
|
||||
printk(BIOS_DEBUG, "IOAPIC: Enabling interrupts on FSB\n");
|
||||
io_apic_write(ioapic_base, 0x03,
|
||||
io_apic_read(ioapic_base, 0x03) | (1 << 0));
|
||||
} else if (IS_ENABLED(CONFIG_IOAPIC_INTERRUPTS_ON_APIC_SERIAL_BUS)) {
|
||||
printk(BIOS_DEBUG,
|
||||
"IOAPIC: Enabling interrupts on APIC serial bus\n");
|
||||
io_apic_write(ioapic_base, 0x03, 0);
|
||||
}
|
||||
|
||||
/* Enable Virtual Wire Mode. */
|
||||
low = ENABLED | TRIGGER_EDGE | POLARITY_HIGH | PHYSICAL_DEST | ExtINT;
|
||||
|
||||
Reference in New Issue
Block a user