summaryrefslogtreecommitdiff
path: root/vgasrc
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2014-10-23 15:54:59 -0400
committerKevin O'Connor <kevin@koconnor.net>2014-10-27 11:03:12 -0400
commitc5acee4d8da81b915f587586280d84d347b1e7df (patch)
treeba1b2ec4ae8fc672e49ebdac4c41b6f3d10b27a7 /vgasrc
parent5b89d959a6ab6fd02e1bd9b1893fb860afec88d0 (diff)
downloadqemu-seabios-c5acee4d8da81b915f587586280d84d347b1e7df.tar.gz
vgabios: Only set the dcc_index=8 if stdvga ports are available
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc')
-rw-r--r--vgasrc/vgainit.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/vgasrc/vgainit.c b/vgasrc/vgainit.c
index 758fea4..a16e81c 100644
--- a/vgasrc/vgainit.c
+++ b/vgasrc/vgainit.c
@@ -111,8 +111,7 @@ init_bios_area(void)
// Set the basic modeset options
SET_BDA(modeset_ctl, 0x51);
- // FIXME We nearly have the good tables. to be reworked
- SET_BDA(dcc_index, 0x08); // 8 is VGA should be ok for now
+ SET_BDA(dcc_index, CONFIG_VGA_STDVGA_PORTS ? 0x08 : 0xff);
SET_BDA(video_savetable
, SEGOFF(get_global_seg(), (u32)&video_save_pointer_table));