Author: stepan
Date: 2009-09-10 13:21:48 +0200 (Thu, 10 Sep 2009)
New Revision: 4629

Modified:
   trunk/util/getpir/code_gen.c
   trunk/util/getpir/pirq_routing.h
Log:
fix compilation issues for pirq checker tool (trivial)

Signed-off-by: Stefan Reinauer <ste...@coresystems.de>
Acked-by: Stefan Reinauer <ste...@coresystems.de>



Modified: trunk/util/getpir/code_gen.c
===================================================================
--- trunk/util/getpir/code_gen.c        2009-09-04 19:34:43 UTC (rev 4628)
+++ trunk/util/getpir/code_gen.c        2009-09-10 11:21:48 UTC (rev 4629)
@@ -50,7 +50,7 @@
                fprintf(fpir, "%s", *code++);
 
        fprintf(fpir, "\t32 + 16 * %d,          /* Max. number of devices on 
the bus */\n",
-               ts, ts);
+               ts);
        fprintf(fpir, "\t0x%02x,                        /* Interrupt router bus 
*/\n",
                rt->rtr_bus);
        fprintf(fpir, "\t(0x%02x << 3) | 0x%01x,        /* Interrupt router dev 
*/\n",

Modified: trunk/util/getpir/pirq_routing.h
===================================================================
--- trunk/util/getpir/pirq_routing.h    2009-09-04 19:34:43 UTC (rev 4628)
+++ trunk/util/getpir/pirq_routing.h    2009-09-10 11:21:48 UTC (rev 4629)
@@ -39,6 +39,10 @@
 
 extern const struct irq_routing_table intel_irq_routing_table;
 
+#ifdef GETPIR
+#define copy_pirq_routing_table(start) (start)
+unsigned long write_pirq_routing_table(unsigned long start);
+#else
 #if CONFIG_HAVE_PIRQ_TABLE==1
 unsigned long copy_pirq_routing_table(unsigned long start);
 unsigned long write_pirq_routing_table(unsigned long start);
@@ -46,5 +50,6 @@
 #define copy_pirq_routing_table(start) (start)
 #define write_pirq_routing_table(start) (start)
 #endif
+#endif
 
 #endif /* ARCH_PIRQ_ROUTING_H */


-- 
coreboot mailing list: coreboot@coreboot.org
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to