From e06c8f66b1aa27cd70f049b8692a8cdc324cd7ea Mon Sep 17 00:00:00 2001 From: emaste Date: Thu, 4 Sep 2014 19:22:01 +0000 Subject: [PATCH] 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 git-svn-id: svn://svn.freebsd.org/base/stable/10@271121 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/dev/vt/hw/vga/vt_vga.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/dev/vt/hw/vga/vt_vga.c b/sys/dev/vt/hw/vga/vt_vga.c index 7d8b2f1d1..834e6e89f 100644 --- a/sys/dev/vt/hw/vga/vt_vga.c +++ b/sys/dev/vt/hw/vga/vt_vga.c @@ -609,7 +609,6 @@ vga_initialize(struct vt_device *vd, int textmode) * planes. */ for (ofs = 0; ofs < VT_VGA_MEMSIZE; ofs++) { - MEM_READ1(sc, ofs); MEM_WRITE1(sc, ofs, 0); } } -- 2.45.0