X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=util%2Fgetpir%2Fcheckpir.c;h=c9703c6f3c2ac851262fcd07699e4d88ff2d2afd;hb=dc65196f8f18c28085d40ccbeb45bba3bfe28294;hp=2a738e78a44374a2d9dfba47e590fcad467f87f1;hpb=6463ae7f1bd1f7ab60725529cf79af30a0e7297d;p=coreboot.git diff --git a/util/getpir/checkpir.c b/util/getpir/checkpir.c index 2a738e78a..c9703c6f3 100644 --- a/util/getpir/checkpir.c +++ b/util/getpir/checkpir.c @@ -1,16 +1,15 @@ /* checkpir.c : This software is released under GPL - For Linuxbios use only - Aug 26 2001 , Nikolai Vladychevski, -*/ + * For coreboot use only + * Aug 26 2001 , Nikolai Vladychevski, + */ #include -#include - +#include "pirq_routing.h" #include "checksum.h" struct irq_routing_table *rt; -main() +int main(void) { uint8_t sum, newsum; @@ -21,11 +20,12 @@ main() 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; }