[coreboot] Patch set updated for coreboot: 3a2acbb IOAPIC: add setup_ioapic_novectors()
Kyösti Mälkki (kyosti.malkki@gmail.com)
gerrit at coreboot.org
Sun Nov 20 22:08:18 CET 2011
Kyösti Mälkki (kyosti.malkki at gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/301
-gerrit
commit 3a2acbbf9ddf661ebbdfde927a55a31cfd673788
Author: Kyösti Mälkki <kyosti.malkki at gmail.com>
Date: Sun Nov 20 20:24:59 2011 +0200
IOAPIC: add setup_ioapic_novectors()
A little helper until we figure out if there is a reason not
to call setup_ioapic() instead on many southbridge codes.
Change-Id: Ia28036f2942efd382f20f27cf94117853f88cade
Signed-off-by: Kyösti Mälkki <kyosti.malkki at gmail.com>
---
src/arch/x86/include/arch/ioapic.h | 1 +
src/arch/x86/lib/ioapic.c | 11 +++++++++++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/arch/x86/include/arch/ioapic.h b/src/arch/x86/include/arch/ioapic.h
index 623f617..3eabcdc 100644
--- a/src/arch/x86/include/arch/ioapic.h
+++ b/src/arch/x86/include/arch/ioapic.h
@@ -40,5 +40,6 @@
void setup_ioapic(u32 ioapic_base, u8 ioapic_id);
void clear_ioapic(u32 ioapic_base);
+void setup_ioapic_novectors(u32 ioapic_base, u8 new_id);
#endif
diff --git a/src/arch/x86/lib/ioapic.c b/src/arch/x86/lib/ioapic.c
index fee2ca1..189c407 100644
--- a/src/arch/x86/lib/ioapic.c
+++ b/src/arch/x86/lib/ioapic.c
@@ -204,3 +204,14 @@ void setup_ioapic(u32 ioapic_base, u8 new_id)
load_vectors(ioapic_base, bsp_lapicid);
}
+void setup_ioapic_novectors(u32 ioapic_base, u8 new_id)
+{
+ u8 ioapic_dt = CONFIG_IOAPIC_DELIVERY_TYPE;
+
+ printk(BIOS_DEBUG, "IOAPIC: Initializing IOAPIC at 0x%08x\n",
+ ioapic_base);
+ init_ioapic(ioapic_base, new_id, ioapic_dt);
+
+ printk(BIOS_CRIT, "IOAPIC: Interrupt Vectors were not initialized\n");
+}
+
More information about the coreboot
mailing list