VGA blanker patch

Philip Blundell (Philip.Blundell@pobox.com)
Wed, 25 Sep 1996 18:42:59 +0100 (BST)


Hi guys.

The attached short patch changes the screen blanker for VGA-alike consoles
slightly. This makes hiding the cursor work on my Hercules mono card;
previously it just moved the cursor to the top left corner and left it
there, which was irritating. It doesn't seem to do any harm on my SVGA
card either, but other people should probably check it out. Assuming no
cards are broken by this, I think it would be a good idea to incorporate
it into the standard kernel.

phil

--
--- clean-linux/linux/drivers/char/vga.c	Tue May 14 00:05:44 1996
+++ linux/drivers/char/vga.c	Wed Sep 25 18:25:11 1996
@@ -111,9 +111,9 @@
      but perhaps the delays due to the inefficiency are useful for
      some hardware... */
 	outb_p(14, video_port_reg);
-	outb_p(0xff&((video_mem_term-video_mem_base)>>9), video_port_val);
+	outb_p(0xff&((video_mem_term-video_mem_base-1)>>9), video_port_val);
 	outb_p(15, video_port_reg);
-	outb_p(0xff&((video_mem_term-video_mem_base)>>1), video_port_val);
+	outb_p(0xff&((video_mem_term-video_mem_base-1)>>1), video_port_val);
 }
 
 void