summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfcambus <fcambus@openbsd.org>2017-05-30 21:42:54 +0000
committerfcambus <fcambus@openbsd.org>2017-05-30 21:42:54 +0000
commitb1ce05ae5c09ff78f6eaef55c79df1f62a49c80a (patch)
tree7a46f809e320e0ef6bb085035692160570118af1
parentFirst pass to make bluhm@ happy regarding doas regress conf. (diff)
downloadwireguard-openbsd-b1ce05ae5c09ff78f6eaef55c79df1f62a49c80a.tar.xz
wireguard-openbsd-b1ce05ae5c09ff78f6eaef55c79df1f62a49c80a.zip
Use the CD bit (Cursor Disable) in the cursor start register to properly
disable hardware cursor. From NetBSD. OK deraadt@
-rw-r--r--sys/dev/ic/pcdisplay_subr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/pcdisplay_subr.c b/sys/dev/ic/pcdisplay_subr.c
index 730f994692e..8cd65fb2649 100644
--- a/sys/dev/ic/pcdisplay_subr.c
+++ b/sys/dev/ic/pcdisplay_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcdisplay_subr.c,v 1.12 2017/05/30 08:24:56 fcambus Exp $ */
+/* $OpenBSD: pcdisplay_subr.c,v 1.13 2017/05/30 21:42:54 fcambus Exp $ */
/* $NetBSD: pcdisplay_subr.c,v 1.16 2000/06/08 07:01:19 cgd Exp $ */
/*
@@ -44,8 +44,8 @@ void
pcdisplay_cursor_reset(struct pcdisplayscreen *scr)
{
#ifdef PCDISPLAY_SOFTCURSOR
- pcdisplay_6845_write(scr->hdl, curstart, 0x10);
- pcdisplay_6845_write(scr->hdl, curend, 0x10);
+ pcdisplay_6845_write(scr->hdl, curstart, 0x20);
+ pcdisplay_6845_write(scr->hdl, curend, 0x00);
#endif
}