From 40cba39e34ccbba6fd6ea7a3183b133f094a2466 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Tue, 28 Oct 2003 17:02:10 +0000 Subject: dynamic pirq table fixup git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1237 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/arch/i386/boot/pirq_routing.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/arch') diff --git a/src/arch/i386/boot/pirq_routing.c b/src/arch/i386/boot/pirq_routing.c index 40f64f2c45..3f17bd1aab 100644 --- a/src/arch/i386/boot/pirq_routing.c +++ b/src/arch/i386/boot/pirq_routing.c @@ -14,7 +14,11 @@ void check_pirq_routing_table(void) #if defined(IRQ_SLOT_COUNT) if (sizeof(intel_irq_routing_table) != intel_irq_routing_table.size) { - printk_warning("Inconsistent IRQ routing table size\n"); + printk_warning("Inconsistent IRQ routing table size (0x%x/0x%x)\n", + sizeof(intel_irq_routing_table), + intel_irq_routing_table.size + ); + intel_irq_routing_table.size=sizeof(intel_irq_routing_table); } #endif @@ -35,6 +39,7 @@ void check_pirq_routing_table(void) printk_warning("%s:%6d:%s() - " "checksum is: 0x%02x but should be: 0x%02x\n", __FILE__, __LINE__, __FUNCTION__, rt->checksum, sum); + rt->checksum = sum; } if (rt->signature != PIRQ_SIGNATURE || rt->version != PIRQ_VERSION || -- cgit v1.2.3