Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Reset flip/flop using dedicated vga_reset_state()...
details: https://anonhg.NetBSD.org/src/rev/61f0d03378d7
branches: trunk
changeset: 780856:61f0d03378d7
user: uwe <uwe%NetBSD.org@localhost>
date: Thu Aug 09 23:56:35 2012 +0000
description:
Reset flip/flop using dedicated vga_reset_state() macro we already have.
Explicit vga_raw_read() used here before was incorrect since it reads
from *wrong* io handle!
Fixes weird problem under VirtualBox where first switch to a different
VT caused text mode color 0 (normally black) to become something else.
diffstat:
sys/dev/ic/vga.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 789750a6f82b -r 61f0d03378d7 sys/dev/ic/vga.c
--- a/sys/dev/ic/vga.c Thu Aug 09 23:53:25 2012 +0000
+++ b/sys/dev/ic/vga.c Thu Aug 09 23:56:35 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vga.c,v 1.108 2012/01/11 20:41:28 macallan Exp $ */
+/* $NetBSD: vga.c,v 1.109 2012/08/09 23:56:35 uwe Exp $ */
/*
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vga.c,v 1.108 2012/01/11 20:41:28 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vga.c,v 1.109 2012/08/09 23:56:35 uwe Exp $");
/* for WSCONS_SUPPORT_PCVTFONTS */
#include "opt_wsdisplay_compat.h"
@@ -1565,7 +1565,7 @@
for (i = 0; i < sizeof(vc->palette); i++)
*palette++ = vga_raw_read(vh, VGA_DAC_PALETTE);
- vga_raw_read(vh, 0x0a); /* reset flip/flop */
+ vga_reset_state(vh); /* reset flip/flop */
}
void
@@ -1583,6 +1583,6 @@
for (i = 0; i < sizeof(vc->palette); i++)
vga_raw_write(vh, VGA_DAC_PALETTE, *palette++);
- vga_raw_read(vh, 0x0a); /* reset flip/flop */
+ vga_reset_state(vh); /* reset flip/flop */
vga_enable(vh);
}
Home |
Main Index |
Thread Index |
Old Index