Port-i386 archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
x86_genfb_mtrr_init compile issue
Hello
I need the attached patch to compile a i386 INSTALL kernel.
is it OK to commit ?
--
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
NetBSD: 26 ans d'experience feront toujours la difference
--
Index: x86/x86_autoconf.c
===================================================================
RCS file: /cvsroot/src/sys/arch/x86/x86/x86_autoconf.c,v
retrieving revision 1.54
diff -u -p -u -r1.54 x86_autoconf.c
--- x86/x86_autoconf.c 8 Feb 2011 10:52:56 -0000 1.54
+++ x86/x86_autoconf.c 9 Feb 2011 11:58:14 -0000
@@ -103,9 +103,11 @@ x86_genfb_set_mapreg(void *opaque, int i
static bool
x86_genfb_setmode(struct genfb_softc *sc, int newmode)
{
+#if NGENFB > 0
if (newmode == WSDISPLAYIO_MODE_EMUL)
x86_genfb_mtrr_init(sc->sc_fboffset,
sc->sc_height * sc->sc_stride);
+#endif
return true;
}
Home |
Main Index |
Thread Index |
Old Index