svn commit: r271121 - stable/10/sys/dev/vt/hw/vga

Ed Maste emaste at FreeBSD.org
Thu Sep 4 19:22:01 UTC 2014


Author: emaste
Date: Thu Sep  4 19:22:01 2014
New Revision: 271121
URL: http://svnweb.freebsd.org/changeset/base/271121

Log:
  MFC r270299 (dumbbell): 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.
  
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/10/sys/dev/vt/hw/vga/vt_vga.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/vt/hw/vga/vt_vga.c
==============================================================================
--- stable/10/sys/dev/vt/hw/vga/vt_vga.c	Thu Sep  4 19:13:07 2014	(r271120)
+++ stable/10/sys/dev/vt/hw/vga/vt_vga.c	Thu Sep  4 19:22:01 2014	(r271121)
@@ -609,7 +609,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-all mailing list