x86: broadwell: Correct I/O APIC ID
[oweals/u-boot.git] / arch / x86 / cpu / irq.c
index 86183b034ecfdf009e2643ad994d418a84e49444..df3cd0abc7771bef450f70c458ad13613d2162e4 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/irq.h>
 #include <asm/pci.h>
 #include <asm/pirq_routing.h>
+#include <asm/tables.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -214,6 +215,9 @@ static int create_pirq_routing_table(struct udevice *dev)
 
        rt->size = irq_entries * sizeof(struct irq_info) + 32;
 
+       /* Fix up the table checksum */
+       rt->checksum = table_compute_checksum(rt, rt->size);
+
        pirq_routing_table = rt;
 
        return 0;