1 /* checkpir.c : This software is released under GPL
3 Aug 26 2001 , Nikolai Vladychevski, <niko@isl.net.mx>
7 #include <arch/pirq_routing.h>
11 struct irq_routing_table *rt;
17 rt = (struct irq_routing_table *) &intel_irq_routing_table;
18 sum = calc_checksum(rt);
20 printf("Validating checksum, file: irq_tables.c that was in ./ at compile time...\n");
21 printf("(no other tests are done)\n");
24 printf("Checksum for IRQ Routing table is ok. You can use it in LinuxBios now\n");
26 newsum = rt->checksum - sum;
27 printf("BAD CHECKSUM for IRQ Routing table !!!!\n");
28 printf("If you want to make it valid, change the checksum to: %#x\n",