dynamic pirq table fixup
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1237 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
parent
72bc623a50
commit
40cba39e34
|
@ -14,7 +14,11 @@ void check_pirq_routing_table(void)
|
||||||
|
|
||||||
#if defined(IRQ_SLOT_COUNT)
|
#if defined(IRQ_SLOT_COUNT)
|
||||||
if (sizeof(intel_irq_routing_table) != intel_irq_routing_table.size) {
|
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
|
#endif
|
||||||
|
|
||||||
|
@ -35,6 +39,7 @@ void check_pirq_routing_table(void)
|
||||||
printk_warning("%s:%6d:%s() - "
|
printk_warning("%s:%6d:%s() - "
|
||||||
"checksum is: 0x%02x but should be: 0x%02x\n",
|
"checksum is: 0x%02x but should be: 0x%02x\n",
|
||||||
__FILE__, __LINE__, __FUNCTION__, rt->checksum, sum);
|
__FILE__, __LINE__, __FUNCTION__, rt->checksum, sum);
|
||||||
|
rt->checksum = sum;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rt->signature != PIRQ_SIGNATURE || rt->version != PIRQ_VERSION ||
|
if (rt->signature != PIRQ_SIGNATURE || rt->version != PIRQ_VERSION ||
|
||||||
|
|
Loading…
Reference in New Issue