Subject: kern/13573: hardware cursor too big
To: None <gnats-bugs@gnats.netbsd.org>
From: None <o.vd.linden@quicknet.nl>
List: netbsd-bugs
Date: 07/27/2001 23:41:08
>Number:         13573
>Category:       kern
>Synopsis:       hw cursor too big
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 27 14:40:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Onno van der Linden
>Release:        <NetBSD-current source date> 23 july 2001
>Organization:
	
>Environment:
	
System: NetBSD sheep 1.5W NetBSD 1.5W (SHEEP) #3: Tue Jul 24 14:06:59 MEST 2001 root@sheep:/usr/src/sys/arch/i386/compile/SHEEP i386
Architecture: i386
Machine: i386
>Description:
The following commit to /sys/dev/ic/pcdisplay_subr.c
#   Revision 1.17 / (download) - annotate - [select for diffs] , Thu Jul 5
#   16:45:23 2001 UTC (2 weeks, 5 days ago) by thorpej
#   Branch: MAIN 
#   Changes since 1.16: +8 -1 lines
#   Diff to previous 1.16 (colored)
#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".
changed the shape of the cursor to something "too big" or "not small enough"
Normally the cursor is initialized by most BIOS's to a smaller size.
By setting curstart to 0xe instead of 0xb things are back to normal.

	
>How-To-Repeat:
	
>Fix:
--- /tmp/pcdisplay_subr.c	Tue Jul 24 21:19:44 2001
+++ /sys/dev/ic/pcdisplay_subr.c	Tue Jul 24 21:21:05 2001
@@ -70,7 +70,7 @@
 	 * 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, curstart, 0x0e);
 	pcdisplay_6845_write(scr->hdl, curend, 0x10);
 #endif
 	scr->cursoron = 1;
>Release-Note:
>Audit-Trail:
>Unformatted: