#include <arch/pirq_routing.h>
#include <string.h>
-#if DEBUG==1
+#if (DEBUG==1 && HAVE_PIRQ_TABLE==1)
void check_pirq_routing_table(void)
{
const uint8_t *addr;
#define verify_copy_pirq_routing_table(addr)
#endif
+#if HAVE_PIRQ_TABLE==1
unsigned long copy_pirq_routing_table(unsigned long addr)
{
/* Align the table to be 16 byte aligned. */
verify_copy_pirq_routing_table(addr);
return addr + intel_irq_routing_table.size;
}
+#endif
extern const struct irq_routing_table intel_irq_routing_table;
-#if defined(DEBUG) && defined(HAVE_PIRQ_TABLE)
+#if (DEBUG==1 && HAVE_PIRQ_TABLE==1)
void check_pirq_routing_table(void);
#else
#define check_pirq_routing_table() do {} while(0)
#endif
-#if defined(HAVE_PIRQ_TABLE)
+#if HAVE_PIRQ_TABLE==1
unsigned long copy_pirq_routing_table(unsigned long start);
#else
#define copy_pirq_routing_table(start) (start)
end
define k7
default none
- export always
+ export used
comment "We're a k7"
end
define k8
default none
- export always
+ export used
comment "We're a k8"
end
define i586
default none
- export always
+ export used
comment "We're a 586"
end
define i686
default none
- export always
+ export used
comment "We're a 686"
end
define CPU_FIXUP
default none
- export always
+ export used
comment "Do CPU fixups"
end
define HEAP_SIZE
default 0x2000
format "0x%x"
- export used
+ export always
comment "Default heap size"
end
define _RAMBASE
end
define NO_POST
default none
- export always
+ export used
comment "Disable POST codes"
end
define TTYS0_BASE
end
define HAVE_MP_TABLE
default none
- export always
+ export used
comment "Define to build an MP table"
end
define HAVE_PIRQ_TABLE
default none
- export always
+ export used
comment "Define if we have a PIRQ table"
end
define IRQ_SLOT_COUNT
default none
- export always
+ export used
comment "Number of IRQ slots"
end
define CONFIG_PCIBIOS_IRQ
default none
- export always
+ export used
comment "PCIBIOS IRQ support"
end
define CONFIG_IOAPIC
default none
- export always
+ export used
comment "IOAPIC support"
end
end
define IDE_SWAB
default none
- export always
+ export used
comment "Swap bytes when reading from IDE device"
end
define IDE_OFFSET
uses k7
uses CPU_FIXUP
+default k7=1
dir /cpu/p6
#object cpufixup.o
+uses k8
uses CPU_FIXUP
+default k8=1
dir /cpu/k7
config chip.h
if CPU_FIXUP
-uses i686
uses INTEL_PPRO_MTRR
dir /cpu/p5
object cpufixup.o