aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fb/vga.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2017-03-26 14:31:29 +0000
committerBruce Evans <bde@FreeBSD.org>2017-03-26 14:31:29 +0000
commit89a1e6c3eb3d2db909a18d731b672dd356d7443a (patch)
tree9003da3511c363ae9d977b3d4acfe25b68dd7d97 /sys/dev/fb/vga.c
parent58cf4d864f54b697ce69078c90d338ed3580821d (diff)
downloadsrc-89a1e6c3eb3d2db909a18d731b672dd356d7443a.tar.gz
src-89a1e6c3eb3d2db909a18d731b672dd356d7443a.zip
Fix 3 entries in mode tables related to mono and 90-column text modes.
Newer VGAs don't support any mono modes, but bugs in the tables created 2 virtual mono modes (#45 90x43 and #112 80x43) that behaved more strangely than crashing. 90-column modes are tweaked 80-column ones and also fail to work on newer VGAs. #45 did crash (hang) on some hardware.
Notes
Notes: svn path=/head/; revision=315986
Diffstat (limited to 'sys/dev/fb/vga.c')
-rw-r--r--sys/dev/fb/vga.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/fb/vga.c b/sys/dev/fb/vga.c
index 39078c6ccd8c..537552a8a844 100644
--- a/sys/dev/fb/vga.c
+++ b/sys/dev/fb/vga.c
@@ -345,7 +345,7 @@ static video_info_t bios_vmode[] = {
{ M_EGAMONO80x25, 0, 80, 25, 8, 14, 2, 1,
MDA_BUF_BASE, MDA_BUF_SIZE, MDA_BUF_SIZE, 0, 0, V_INFO_MM_TEXT },
/* EGA */
- { M_ENH_B80x43, 0, 80, 43, 8, 8, 2, 1,
+ { M_ENH_B80x43, V_INFO_COLOR, 80, 43, 8, 8, 2, 1,
CGA_BUF_BASE, CGA_BUF_SIZE, CGA_BUF_SIZE, 0, 0, V_INFO_MM_TEXT },
{ M_ENH_C80x43, V_INFO_COLOR, 80, 43, 8, 8, 4, 1,
CGA_BUF_BASE, CGA_BUF_SIZE, CGA_BUF_SIZE, 0, 0, V_INFO_MM_TEXT },
@@ -375,7 +375,7 @@ static video_info_t bios_vmode[] = {
{ M_VGA_C90x30, V_INFO_COLOR, 90, 30, 8, 16, 4, 1,
CGA_BUF_BASE, CGA_BUF_SIZE, CGA_BUF_SIZE, 0, 0, V_INFO_MM_TEXT },
{ M_VGA_M90x43, 0, 90, 43, 8, 8, 2, 1,
- CGA_BUF_BASE, CGA_BUF_SIZE, CGA_BUF_SIZE, 0, 0, V_INFO_MM_TEXT },
+ MDA_BUF_BASE, MDA_BUF_SIZE, MDA_BUF_SIZE, 0, 0, V_INFO_MM_TEXT },
{ M_VGA_C90x43, V_INFO_COLOR, 90, 43, 8, 8, 4, 1,
CGA_BUF_BASE, CGA_BUF_SIZE, CGA_BUF_SIZE, 0, 0, V_INFO_MM_TEXT },
{ M_VGA_M90x50, 0, 90, 50, 8, 8, 2, 1,
@@ -591,7 +591,7 @@ map_mode_num(int mode)
{ M_VGA_C90x25, M_VGA_C80x25 },
{ M_VGA_M90x30, M_VGA_M80x25 },
{ M_VGA_C90x30, M_VGA_C80x25 },
- { M_VGA_M90x43, M_ENH_B80x25 },
+ { M_VGA_M90x43, M_VGA_M80x25 },
{ M_VGA_C90x43, M_ENH_C80x25 },
{ M_VGA_M90x50, M_VGA_M80x25 },
{ M_VGA_C90x50, M_VGA_C80x25 },