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 using the hardware cursor, make sure the curso...
details: https://anonhg.NetBSD.org/src/rev/04447ba315f1
branches: trunk
changeset: 512102:04447ba315f1
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu Jul 05 16:45:23 2001 +0000
description:
If using the hardware cursor, make sure the cursor shape is initialized,
otherwise we won't be able to see anything if the system firmware has
either not initialized it, or initialized it to "invlisible".
diffstat:
sys/dev/ic/pcdisplay_subr.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diffs (23 lines):
diff -r 202875bd1048 -r 04447ba315f1 sys/dev/ic/pcdisplay_subr.c
--- a/sys/dev/ic/pcdisplay_subr.c Thu Jul 05 16:02:21 2001 +0000
+++ b/sys/dev/ic/pcdisplay_subr.c Thu Jul 05 16:45:23 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pcdisplay_subr.c,v 1.16 2000/06/08 07:01:19 cgd Exp $ */
+/* $NetBSD: pcdisplay_subr.c,v 1.17 2001/07/05 16:45:23 thorpej Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -65,6 +65,13 @@
bus_space_write_2(memt, memh, off, scr->cursortmp ^ 0x7700);
} else
scr->cursortmp = 0;
+#else
+ /*
+ * Firmware might not have initialized the cursor shape. Make
+ * sure there's something we can see.
+ */
+ pcdisplay_6845_write(scr->hdl, curstart, 0x0b);
+ pcdisplay_6845_write(scr->hdl, curend, 0x10);
#endif
scr->cursoron = 1;
}
Home |
Main Index |
Thread Index |
Old Index