Index: kexec-tools-1.101/purgatory/arch/ia64/io.h =================================================================== --- kexec-tools-1.101.orig/purgatory/arch/ia64/io.h 2006-10-16 18:19:07.346416494 -0700 +++ kexec-tools-1.101/purgatory/arch/ia64/io.h 2006-10-16 18:47:14.742913628 -0700 @@ -4,6 +4,7 @@ #define MF() asm volatile ("mf.a" ::: "memory") #define IO_SPACE_ENCODING(p) ((((p) >> 2) << 12) | (p & 0xfff)) +#ifdef DO_VGA_IO static inline void *io_addr (unsigned long port) { unsigned long offset; @@ -91,4 +92,46 @@ static inline void writel(unsigned int b { *(volatile unsigned int *) addr = b; } +#else +static inline void *io_addr (unsigned long port) +{ return (void*)0; } + +static inline unsigned int inb (unsigned long port) +{ return 0; } + +static inline unsigned int inw (unsigned long port) +{ return 0; } + +static inline unsigned int ia64_inl (unsigned long port) +{ return 0; } + +static inline void outb (unsigned char val, unsigned long port) +{ return; } + +static inline void outw (unsigned short val, unsigned long port) +{ return; } + +static inline void outl (unsigned int val, unsigned long port) +{ return; } + + +static inline unsigned char readb(const volatile void *addr) +{ return 0; } + +static inline unsigned short readw(const volatile void *addr) +{ return 0; } + +static inline unsigned int readl(const volatile void *addr) +{ return 0; } + +static inline void writeb(unsigned char b, volatile void *addr) +{ return; } + +static inline void writew(unsigned short b, volatile void *addr) +{ return; } + +static inline void writel(unsigned int b, volatile void *addr) +{ return; } + +#endif #endif