diff options
author | Volker Ruppert <info@vruppert.de> | 2004-07-18 20:22:43 +0000 |
---|---|---|
committer | Volker Ruppert <info@vruppert.de> | 2004-07-18 20:22:43 +0000 |
commit | 1011509cdc5c343d6cdf4465fc52c2f567d234c1 (patch) | |
tree | b644aa72daa5c67eccf00d020b0cfcc5303ec17b | |
parent | cb9942ae45ef262cd3f235c6a1ce54dfae2f2ba2 (diff) | |
download | vgabios-1011509cdc5c343d6cdf4465fc52c2f567d234c1.tar.gz |
- disable CRTC write protection before setting new values
- CRTC line for mode 0x6a fixed
-rw-r--r-- | vgabios.c | 2 | ||||
-rw-r--r-- | vgatables.h | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -873,6 +873,8 @@ static void biosfn_set_video_mode(mode) Bit8u mode; // Set CRTC address VGA or MDA crtc_addr=vga_modes[line].memmodel==MTEXT?VGAREG_MDA_CRTC_ADDRESS:VGAREG_VGA_CRTC_ADDRESS; + // Disable CRTC write protection + outw(crtc_addr,0x0011); // Set CRTC regs for(i=0;i<=CRTC_MAX_REG;i++) {outb(crtc_addr,i); diff --git a/vgatables.h b/vgatables.h index 8f4fbb0..e5eca1e 100644 --- a/vgatables.h +++ b/vgatables.h @@ -154,7 +154,7 @@ static Bit8u crtc_regs[CRTC_MAX_MODEL+1][CRTC_MAX_REG+1]= /* 07 */ 0x5f,0x4f,0x50,0x82,0x54,0x80,0xbf,0x1f,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0x83,0x85,0x5d,0x28,0x0f,0x63,0xba,0xe3,0xff, /* 08 */ 0x5f,0x4f,0x50,0x82,0x54,0x80,0x0b,0x3e,0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,0xea,0x8c,0xdf,0x28,0x00,0xe7,0x04,0xe3,0xff, /* 09 */ 0x5f,0x4f,0x50,0x82,0x54,0x80,0xbf,0x1f,0x00,0x41,0x00,0x00,0x00,0x00,0x00,0x00,0x9c,0x8e,0x8f,0x28,0x40,0x96,0xb9,0xa3,0xff, - /* 0A */ 0x7f,0x63,0x63,0x83,0x6b,0x1b,0x72,0xf0,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x59,0x0d,0x57,0x32,0x00,0x57,0x73,0xe3,0xff + /* 0A */ 0x7f,0x63,0x63,0x83,0x6b,0x1b,0x72,0xf0,0x00,0x60,0x00,0x00,0x00,0x00,0x00,0x00,0x59,0x8d,0x57,0x32,0x00,0x57,0x73,0xe3,0xff }; /* Attribute Controler 0x3c0 */ |