Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic If PCDISPLAY_SOFTCURSOR is defined, disable the h...
details: https://anonhg.NetBSD.org/src/rev/e7f5ee9292c4
branches: trunk
changeset: 758112:e7f5ee9292c4
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Tue Oct 19 22:27:54 2010 +0000
description:
If PCDISPLAY_SOFTCURSOR is defined, disable the hardware cursor on resume.
diffstat:
sys/dev/ic/vga.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 2d7b8eb57d4a -r e7f5ee9292c4 sys/dev/ic/vga.c
--- a/sys/dev/ic/vga.c Tue Oct 19 22:27:19 2010 +0000
+++ b/sys/dev/ic/vga.c Tue Oct 19 22:27:54 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vga.c,v 1.104 2010/04/19 18:24:26 dyoung Exp $ */
+/* $NetBSD: vga.c,v 1.105 2010/10/19 22:27:54 jmcneill Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vga.c,v 1.104 2010/04/19 18:24:26 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vga.c,v 1.105 2010/10/19 22:27:54 jmcneill Exp $");
/* for WSCONS_SUPPORT_PCVTFONTS */
#include "opt_wsdisplay_compat.h"
@@ -1480,4 +1480,9 @@
#ifdef VGA_RESET_ON_RESUME
vga_initregs(&sc->sc_vc->hdl);
#endif
+#ifdef PCDISPLAY_SOFTCURSOR
+ /* Disable the hardware cursor */
+ vga_6845_write(&sc->sc_vc->hdl, curstart, 0x20);
+ vga_6845_write(&sc->sc_vc->hdl, curend, 0x00);
+#endif
}
Home |
Main Index |
Thread Index |
Old Index