diff options
author | Keith Packard <keithp@keithp.com> | 2000-05-24 23:57:56 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2000-05-24 23:57:56 +0000 |
commit | 325fb002e8832a05361516bbaf19d1e8b67a3486 (patch) | |
tree | aede90ec8ae9f64e9a6f102de345f4e660588654 /hw/kdrive/src/vga.c | |
parent | a6d519e527a81341ad333cb25b410dfde07176ae (diff) | |
download | xserver-325fb002e8832a05361516bbaf19d1e8b67a3486.tar.gz |
Fix 640x480x60 mode, drop inb/outb on non-x86 machinesxf-4_0gxf-4_0fxf-4_0exf-4_0dxf-4_0cxf-4_0_1axf-4_0_1-bindistxf-4_0_1xf-4_0Z
Diffstat (limited to 'hw/kdrive/src/vga.c')
-rw-r--r-- | hw/kdrive/src/vga.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/kdrive/src/vga.c b/hw/kdrive/src/vga.c index 6061696a6..77d6c2ac4 100644 --- a/hw/kdrive/src/vga.c +++ b/hw/kdrive/src/vga.c @@ -27,12 +27,17 @@ #include <stdio.h> #ifdef linux +#ifdef __i386__ #define extern static #include <asm/io.h> #undef extern #define _VgaInb(r) inb(r) #define _VgaOutb(v,r) outb(v,r) +#else +#define _VgaInb(r) 0 +#define _VgaOutb(v,r) +#endif #define _VgaByteAddr(a) ((VGAVOL8 *) (a)) #define _VgaBytePort(a) (a) |