Module Name: src Committed By: jmcneill Date: Tue Oct 19 22:27:54 UTC 2010
Modified Files: src/sys/dev/ic: vga.c Log Message: If PCDISPLAY_SOFTCURSOR is defined, disable the hardware cursor on resume. To generate a diff of this commit: cvs rdiff -u -r1.104 -r1.105 src/sys/dev/ic/vga.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/ic/vga.c diff -u src/sys/dev/ic/vga.c:1.104 src/sys/dev/ic/vga.c:1.105 --- src/sys/dev/ic/vga.c:1.104 Mon Apr 19 18:24:26 2010 +++ src/sys/dev/ic/vga.c Tue Oct 19 22:27:54 2010 @@ -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 }