Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x86/pci we don't need to keep track of curmode if n...
details: https://anonhg.NetBSD.org/src/rev/d0ba9a9ee7f3
branches: trunk
changeset: 333465:d0ba9a9ee7f3
user: christos <christos%NetBSD.org@localhost>
date: Wed Nov 05 05:07:43 2014 +0000
description:
we don't need to keep track of curmode if not vga_post.
diffstat:
sys/arch/x86/pci/pci_machdep.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diffs (49 lines):
diff -r b940bd87d2c5 -r d0ba9a9ee7f3 sys/arch/x86/pci/pci_machdep.c
--- a/sys/arch/x86/pci/pci_machdep.c Wed Nov 05 01:40:30 2014 +0000
+++ b/sys/arch/x86/pci/pci_machdep.c Wed Nov 05 05:07:43 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_machdep.c,v 1.67 2014/05/06 18:54:34 christos Exp $ */
+/* $NetBSD: pci_machdep.c,v 1.68 2014/11/05 05:07:43 christos Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.67 2014/05/06 18:54:34 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_machdep.c,v 1.68 2014/11/05 05:07:43 christos Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -789,24 +789,28 @@
x86_genfb_setmode(struct genfb_softc *sc, int newmode)
{
#if NGENFB > 0
+# if NACPICA > 0 && defined(VGA_POST)
static int curmode = WSDISPLAYIO_MODE_EMUL;
+# endif
switch (newmode) {
case WSDISPLAYIO_MODE_EMUL:
x86_genfb_mtrr_init(sc->sc_fboffset,
sc->sc_height * sc->sc_stride);
-#if NACPICA > 0 && defined(VGA_POST)
+# if NACPICA > 0 && defined(VGA_POST)
if (curmode != newmode) {
if (vga_posth != NULL && acpi_md_vesa_modenum != 0) {
vga_post_set_vbe(vga_posth,
acpi_md_vesa_modenum);
}
}
-#endif
+# endif
break;
}
+# if NACPICA > 0 && defined(VGA_POST)
curmode = newmode;
+# endif
#endif
return true;
}
Home |
Main Index |
Thread Index |
Old Index