dynamic pirq table fixup

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1237 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Stefan Reinauer 2003-10-28 17:02:10 +00:00
parent 72bc623a50
commit 40cba39e34
1 changed files with 6 additions and 1 deletions

View File

@ -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 ||