+// setBaseXMode() does the initialization to make the VGA ready to\r
+// accept any combination of configuration register settings. This\r
+// involves enabling writes to index 0 to 7 of the CRT controller (port\r
+// 0x3D4), by clearing the most significant bit (bit 7) of index 0x11.\r
+void\r
+modexsetBaseXMode(void)\r
+{\r
+ int temp;\r
+\r
+ /* TODO save current video mode and palette */\r
+ vgaSetMode(VGA_256_COLOR_MODE);\r
+\r
+ outp(CRTC_INDEX, 0x11);\r
+ temp = inp(CRTC_DATA) & 0x7F;\r
+ outp(CRTC_INDEX, 0x11);\r
+ outp(CRTC_DATA, temp);\r
+}\r