Revert "kernel/vga: Remove some unneeded #ifdef/#define's."
authorSascha Wildner <saw@online.de>
Mon, 30 Apr 2012 22:11:13 +0000 (00:11 +0200)
committerSascha Wildner <saw@online.de>
Mon, 30 Apr 2012 22:11:13 +0000 (00:11 +0200)
This reverts commit 617e8b12b140696ebd906ac4c3e01ea56643c624.

Sorry, it wasn't unneeded at all.

sys/dev/video/fb/vga.c

index 288d1dc..29fdf50 100644 (file)
@@ -47,7 +47,9 @@
 
 #include <machine/clock.h>
 #include <machine/md_var.h>
+#ifdef __i386__
 #include <machine/pc/bios.h>
+#endif
 
 #include <vm/vm.h>
 #include <vm/vm_param.h>
 #define VGA_DEBUG              0
 #endif
 
+/* machine/pc/bios.h has got too much i386-specific stuff in it */
+#ifndef BIOS_PADDRTOVADDR
+#define BIOS_PADDRTOVADDR(x) (((x) - ISA_HOLE_START) + atdevbase)
+#endif
 int
 vga_probe_unit(int unit, video_adapter_t *buf, int flags)
 {