From 46d65e85a1c0449f86497264d5958b3d85784767 Mon Sep 17 00:00:00 2001 From: Jeremy Jackson Date: Wed, 11 Apr 2007 18:44:42 +0000 Subject: Jeremy Jackson wrote: I'm guessing nobody has tried compiling it with 64bit userspace? Patch makes it compile cleanly and stops a "SEGV instead of working" issue. I also added a few checks for errors on system calls. Signed-off-by: Jeremy Jackson Reworked and Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2602 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/getpir/code_gen.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'util/getpir/code_gen.c') diff --git a/util/getpir/code_gen.c b/util/getpir/code_gen.c index 150d083d86..a458eae27a 100644 --- a/util/getpir/code_gen.c +++ b/util/getpir/code_gen.c @@ -1,12 +1,17 @@ #include -#include +#include +#include "pirq_routing.h" static char *preamble[] = { "/* This file was generated by getpir.c, do not modify! \n (but if you do, please run checkpir on it to verify)\n", " * Contains the IRQ Routing Table dumped directly from your memory, which BIOS sets up\n", " *\n", " * Documentation at : http://www.microsoft.com/hwdev/busbios/PCIIRQ.HTM\n*/\n\n", - "#include \n\n", + "#ifdef GETPIR\n", + "#include \"pirq_routing.h\"\n", + "#else\n" + "#include \n", + "#endif\n\n" "const struct irq_routing_table intel_irq_routing_table = {\n", "\tPIRQ_SIGNATURE, /* u32 signature */\n", "\tPIRQ_VERSION, /* u16 version */\n", -- cgit v1.2.3