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.
This commit is contained in:
Bruce Evans 1998-07-07 05:00:09 +00:00
parent c4ebf24f6e
commit 6aa42d9a4e

@ -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