[coreboot] Patch set updated for coreboot: b5a0f0d IOAPIC: add setup_ioapic_NOVECTORS()
Kyösti Mälkki (kyosti.malkki@gmail.com)
gerrit at coreboot.org
Wed Oct 19 18:41:28 CEST 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 b5a0f0da0b7519c5ab33edf7c650366da34d82b6
Author: Kyösti Mälkki <kyosti.malkki at gmail.com>
Date: Wed Oct 19 07:10:54 2011 +0300
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 | 9 +++++++++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/arch/x86/include/arch/ioapic.h b/src/arch/x86/include/arch/ioapic.h
index 623f617..6b69063 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 94f796b..dbbf781 100644
--- a/src/arch/x86/lib/ioapic.c
+++ b/src/arch/x86/lib/ioapic.c
@@ -209,3 +209,12 @@ 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)
+{
+ printk(BIOS_DEBUG, "IOAPIC: Initializing IOAPIC at 0x%08x\n",
+ ioapic_base);
+ init_ioapic(ioapic_base, new_id, CONFIG_IOAPIC_DELIVERY_TYPE);
+
+ printk(BIOS_CRIT, "IOAPIC: Interrupt Vectors were not initialized\n");
+}
+
More information about the coreboot
mailing list