aboutsummaryrefslogtreecommitdiff
path: root/vgasrc
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2012-01-02 10:51:26 -0500
committerKevin O'Connor <kevin@koconnor.net>2012-01-14 17:18:54 -0500
commit2c8ba89aab21dcd400a923887843696dc00a9645 (patch)
tree024c4049ba625dab8e3878407f1a5df9ea351d8a /vgasrc
parent4519197f2ef7958b007b5beb67988c98277c5991 (diff)
downloadseabios-hppa-2c8ba89aab21dcd400a923887843696dc00a9645.zip
seabios-hppa-2c8ba89aab21dcd400a923887843696dc00a9645.tar.gz
seabios-hppa-2c8ba89aab21dcd400a923887843696dc00a9645.tar.bz2
vgabios: Remove dummy 0xfe mode from list of cirrus modes.
The 0xfe mode isn't a real mode, it's a place holder for settings needed to switch back to non-cirrus modes. Handle it that way. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc')
-rw-r--r--vgasrc/clext.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vgasrc/clext.c b/vgasrc/clext.c
index 61bfe92..ec0380f 100644
--- a/vgasrc/clext.c
+++ b/vgasrc/clext.c
@@ -293,10 +293,11 @@ static struct cirrus_mode_s cirrus_modes[] VAR16 = {
{0x7b,MM_PACKED,1600,1200,8,0x00,
cseq_1600x1200x8,cgraph_svgacolor,ccrtc_1600x1200x8,8,
0,0,0,0,0,0,0,0},
+};
+static struct cirrus_mode_s mode_switchback VAR16 =
{0xfe,0xff,0,0,0,0,cseq_vga,cgraph_vga,ccrtc_vga,0,
- 0,0,0,0,0,0,0,0},
-};
+ 0,0,0,0,0,0,0,0};
/****************************************************************
@@ -405,8 +406,7 @@ clext_set_mode(int mode, int flags)
SET_BDA(video_mode, mode);
return 0;
}
- table_g = cirrus_get_modeentry(0xfe);
- cirrus_switch_mode(table_g);
+ cirrus_switch_mode(&mode_switchback);
dprintf(1, "cirrus mode switch regular\n");
return stdvga_set_mode(mode, flags);
}