From d0c24eaaf90a7c5ed27e1569a23b75e0c5a07954 Mon Sep 17 00:00:00 2001 From: dumbbell Date: Thu, 21 Aug 2014 20:10:05 +0000 Subject: [PATCH] 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 --- 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 5dbf5bd4f53e..8bb36a2bbbf9 100644 --- a/sys/dev/vt/hw/vga/vt_vga.c +++ b/sys/dev/vt/hw/vga/vt_vga.c @@ -604,7 +604,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); } }