more gcc fixes.

This commit is contained in:
Ronald G. Minnich 2002-12-09 23:38:11 +00:00
commit d96a3f75b8
5 changed files with 29 additions and 5 deletions

View file

@ -26,11 +26,15 @@ struct irq_routing_table {
u32 miniport_data; /* Crap */
u8 rfu[11];
u8 checksum; /* Modulo 256 checksum must give zero */
#if GCC_VERSION < 3000
#ifndef IRQ_SLOT_COUNT
#if (__GNUC__ < 3)
struct irq_info slots[1];
#else
struct irq_info slots[];
#endif
#endif // __GNUC__ < 3
#else
struct irq_info slots[IRQ_SLOT_COUNT];
#endif // ! IRQ_SLOT_COUNT
} __attribute__((packed));
extern const struct irq_routing_table intel_irq_routing_table;

View file

@ -1,6 +1,7 @@
object i386_subr.o
object params.o
object hardwaremain.o
object c_start.S
object pirq_routing.o HAVE_PIRQ_TABLE
object vgabios.o CONFIG_VGABIOS
object idt.o CONFIG_REALMODE_IDT

View file

@ -1,5 +1,5 @@
/* PCI: Interrupt Routing Table found at 0x4011ce40 size = 416 */
#define IRQ_SLOT_COUNT 24
#include <arch/pirq_routing.h>
const struct irq_routing_table intel_irq_routing_table = {