summaryrefslogtreecommitdiffstats
path: root/sys/dev/vt
diff options
context:
space:
mode:
authoremaste <emaste@FreeBSD.org>2014-09-04 19:22:01 +0000
committeremaste <emaste@FreeBSD.org>2014-09-04 19:22:01 +0000
commitc3376ddfe107df438db8baff987ae94bb744f6ba (patch)
tree28bfe9608e7f2e28d8f9d4af9514fb9f6d8019c9 /sys/dev/vt
parentf4cd1af86e2411da3b4c566d5b9325e7e5f1548d (diff)
downloadFreeBSD-src-c3376ddfe107df438db8baff987ae94bb744f6ba.zip
FreeBSD-src-c3376ddfe107df438db8baff987ae94bb744f6ba.tar.gz
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
Diffstat (limited to 'sys/dev/vt')
-rw-r--r--sys/dev/vt/hw/vga/vt_vga.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/dev/vt/hw/vga/vt_vga.c b/sys/dev/vt/hw/vga/vt_vga.c
index 7d8b2f1..834e6e8 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);
}
}
OpenPOWER on IntegriCloud