vgabios: Remove dummy 0xfe mode from list of cirrus modes.
authorKevin O'Connor <kevin@koconnor.net>
Mon, 2 Jan 2012 15:51:26 +0000 (10:51 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Sat, 14 Jan 2012 22:18:54 +0000 (17:18 -0500)
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>
vgasrc/clext.c

index 61bfe9238b2e7f8bf4f2fd2dbefe206f4330343c..ec0380f908bde4211e82fa3185ff1f0f20b5bac3 100644 (file)
@@ -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);
 }