Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/arch/i386/isa Pullup 1.142 [hpeyerl]:



details:   https://anonhg.NetBSD.org/src/rev/af5ba1495e4c
branches:  netbsd-1-5
changeset: 489737:af5ba1495e4c
user:      tv <tv%NetBSD.org@localhost>
date:      Mon Oct 16 21:39:41 2000 +0000

description:
Pullup 1.142 [hpeyerl]:
Sanity check the cursor position read from the 6845 and if clearly
off-screen, set it to 0x0.  From dean%huxley.org@localhost.

diffstat:

 sys/arch/i386/isa/pccons.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 2407fc3077d0 -r af5ba1495e4c sys/arch/i386/isa/pccons.c
--- a/sys/arch/i386/isa/pccons.c        Mon Oct 16 21:36:08 2000 +0000
+++ b/sys/arch/i386/isa/pccons.c        Mon Oct 16 21:39:41 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pccons.c,v 1.140.2.1 2000/06/30 16:27:26 simonb Exp $  */
+/*     $NetBSD: pccons.c,v 1.140.2.2 2000/10/16 21:39:41 tv Exp $      */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -1213,6 +1213,9 @@
        outb(addr_6845, 15);
        cursorat |= inb(addr_6845+1);
 
+       if (cursorat > COL * ROW)
+               cursorat = 0;
+
 #ifdef FAT_CURSOR
        cursor_shape = 0x0012;
 #endif



Home | Main Index | Thread Index | Old Index