svn commit: r270299 - head/sys/dev/vt/hw/vga

Jean-Sebastien Pedron dumbbell at FreeBSD.org
Thu Aug 21 20:10:06 UTC 2014


Author: dumbbell
Date: Thu Aug 21 20:10:05 2014
New Revision: 270299
URL: http://svnweb.freebsd.org/changeset/base/270299

Log:
  vt_vga: When clearing video memory, don't read from it
  
  The goal is to clear the video memory, in case an application drew to
  it. So the content shouldn't be loaded in the latches, it can't be
  trusted anyway.
  
  This improves a bit the window switch speed.
  
  MFC after:	1 week

Modified:
  head/sys/dev/vt/hw/vga/vt_vga.c

Modified: head/sys/dev/vt/hw/vga/vt_vga.c
==============================================================================
--- head/sys/dev/vt/hw/vga/vt_vga.c	Thu Aug 21 19:58:46 2014	(r270298)
+++ head/sys/dev/vt/hw/vga/vt_vga.c	Thu Aug 21 20:10:05 2014	(r270299)
@@ -604,7 +604,6 @@ vga_initialize(struct vt_device *vd, int
 		 * planes.
 		 */
 		for (ofs = 0; ofs < VT_VGA_MEMSIZE; ofs++) {
-			MEM_READ1(sc, ofs);
 			MEM_WRITE1(sc, ofs, 0);
 		}
 	}


More information about the svn-src-head mailing list