summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-07-07 05:00:09 +0000
committerbde <bde@FreeBSD.org>1998-07-07 05:00:09 +0000
commitd28c0c138bbfa7a46e1c630311b4229ff8e7dd3e (patch)
treef3d8ac63525e7f73a3f92e501f2f7d1486fee426 /sys
parent55b8a9ebf0bfec18ecb357b8f0e8f8b45c321c31 (diff)
downloadFreeBSD-src-d28c0c138bbfa7a46e1c630311b4229ff8e7dd3e.zip
FreeBSD-src-d28c0c138bbfa7a46e1c630311b4229ff8e7dd3e.tar.gz
Changed `#if defined(i386)' to `#ifdef __i386__'.
`#if defined(ONE_THING)' is a style bug, and i386 instead of __i386__ is a bug, since i386 is never defined when the kernel is compiled by with the default flags (`gcc -ansi ...'). Here the bug disabled the call to pmap_setvidram(), so ISA video memory was not mapped WC on 686's. The bug may have been masked by bugs in the committer's version of gcc - `gcc -ansi' incorrectly defines i386 for gcc = the version of egcs on the 2.2.6 cdrom.
Diffstat (limited to 'sys')
-rw-r--r--sys/pci/pcisupport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/pcisupport.c b/sys/pci/pcisupport.c
index e9828f7..9f13f396 100644
--- a/sys/pci/pcisupport.c
+++ b/sys/pci/pcisupport.c
@@ -1,6 +1,6 @@
/**************************************************************************
**
-** $Id: pcisupport.c,v 1.69 1998/06/08 04:07:51 dyson Exp $
+** $Id: pcisupport.c,v 1.70 1998/06/30 08:13:27 jmg Exp $
**
** Device driver for DEC/INTEL PCI chipsets.
**
@@ -1108,7 +1108,7 @@ static char* vga_probe (pcici_t tag, pcidi_t typea)
}
#endif
-#if defined(i386)
+#ifdef __i386__
pmap_setvidram();
#endif
OpenPOWER on IntegriCloud