diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2021-06-06 14:34:57 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2021-10-17 18:09:57 +0000 |
commit | 253c356c2bca2a9552a42ea4dd38c71a639877a4 (patch) | |
tree | 8b7a94e9f10e1291adcd7d1236c7f8ac7261a158 /src/arch/x86/ioapic.c | |
parent | 6644d7c508a1a15d5a0c79f47cdf09585c99192f (diff) |
sb/amd/cimx/sb800: Clear IOAPIC vectors only once
Change-Id: I640d17cdee2bdaa4fe7049ce66a327b58924bc6f
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55288
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Michał Żygowski <michal.zygowski@3mdeb.com>
Diffstat (limited to 'src/arch/x86/ioapic.c')
-rw-r--r-- | src/arch/x86/ioapic.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/arch/x86/ioapic.c b/src/arch/x86/ioapic.c index 61fed890d1..1d30baad48 100644 --- a/src/arch/x86/ioapic.c +++ b/src/arch/x86/ioapic.c @@ -60,11 +60,6 @@ static void clear_vectors(void *ioapic_base, u8 first, u8 last) } } -void clear_ioapic(void *ioapic_base) -{ - clear_vectors(ioapic_base, 0, ioapic_interrupt_count(ioapic_base) - 1); -} - static void route_i8259_irq0(void *ioapic_base) { u32 bsp_lapicid = lapicid(); @@ -139,6 +134,6 @@ void ioapic_set_boot_config(void *ioapic_base, bool irq_on_fsb) void setup_ioapic(void *ioapic_base, u8 ioapic_id) { set_ioapic_id(ioapic_base, ioapic_id); - clear_ioapic(ioapic_base); + clear_vectors(ioapic_base, 0, ioapic_interrupt_count(ioapic_base) - 1); route_i8259_irq0(ioapic_base); } |