/* checkpir.c : This software is released under GPL
- For Linuxbios use only
- Aug 26 2001 , Nikolai Vladychevski, <niko@isl.net.mx>
-*/
+ * For coreboot use only
+ * Aug 26 2001 , Nikolai Vladychevski, <niko@isl.net.mx>
+ */
#include <stdio.h>
-#include <arch/pirq_routing.h>
-
+#include "pirq_routing.h"
#include "checksum.h"
struct irq_routing_table *rt;
-main()
+int main(void)
{
uint8_t sum, newsum;
printf("(no other tests are done)\n");
if (!sum) {
- printf("Checksum for IRQ Routing table is ok. You can use it in LinuxBios now\n");
+ printf("Checksum for IRQ Routing table is ok. You can use irq_tables.c in coreboot now.\n");
} else {
newsum = rt->checksum - sum;
printf("BAD CHECKSUM for IRQ Routing table !!!!\n");
printf("If you want to make it valid, change the checksum to: %#x\n",
newsum);
}
+ return 0;
}