From 42ff6ac8bc4f8778179741bc2d4f6ba741313d54 Mon Sep 17 00:00:00 2001 From: jmcneill Date: Tue, 19 Oct 2010 22:27:54 +0000 Subject: [PATCH] If PCDISPLAY_SOFTCURSOR is defined, disable the hardware cursor on resume. --- sys/dev/ic/vga.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/sys/dev/ic/vga.c b/sys/dev/ic/vga.c index 58ce0770b1e8..6bc07917ccbf 100644 --- a/sys/dev/ic/vga.c +++ b/sys/dev/ic/vga.c @@ -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 -__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 @@ vga_resume(struct vga_softc *sc) #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 }