summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Ruppert <info@vruppert.de>2006-08-19 09:39:43 +0000
committerVolker Ruppert <info@vruppert.de>2006-08-19 09:39:43 +0000
commitc03e95176081823fdde3efd2912a3fb5cb5a50d5 (patch)
tree23bd5309fb5e528e7570c7168c1b6383254f3864
parent4eefe2c313351dd185536d23218c47aeb4642fec (diff)
- improved VGA compatible setup for VBE modes (disable CGA and Hercules
compatible memory layout)
-rw-r--r--vbe.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/vbe.c b/vbe.c
index 801c675..cab6c79 100644
--- a/vbe.c
+++ b/vbe.c
@@ -574,6 +574,12 @@ bit9_clear:
mov dx, # VGAREG_VGA_CRTC_ADDRESS
mov ax, #0x0009
out dx, ax
+ mov al, #0x17
+ out dx, al
+ mov dx, # VGAREG_VGA_CRTC_DATA
+ in al, dx
+ or al, #0x03
+ out dx, al
mov dx, # VGAREG_ACTL_RESET
in al, dx
mov dx, # VGAREG_ACTL_ADDRESS