diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/fb/vga.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/fb/vga.c b/sys/dev/fb/vga.c index b42016d..7c0627f 100644 --- a/sys/dev/fb/vga.c +++ b/sys/dev/fb/vga.c @@ -60,10 +60,15 @@ #define VGA_DEBUG 0 #endif -/* machine/pc/bios.h has got too much i386-specific stuff in it */ +/* XXX machine/pc/bios.h has got too much i386-specific stuff in it */ #ifndef BIOS_PADDRTOVADDR +#if !defined(__amd64__) +#define BIOS_PADDRTOVADDR(x) (x) +#else #define BIOS_PADDRTOVADDR(x) (((x) - ISA_HOLE_START) + atdevbase) #endif +#endif + int vga_probe_unit(int unit, video_adapter_t *buf, int flags) { |