aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Ruppert <info@vruppert.de>2004-06-25 18:28:16 +0000
committerVolker Ruppert <info@vruppert.de>2004-06-25 18:28:16 +0000
commit31636b4178cd38528fe648a171222f7f686d7c39 (patch)
tree36feb1c44bf8ac938098de1db8662720624fc882
parenta9f91e7564a520ee24ef63121537978788ac9e9a (diff)
downloadvgabios-31636b4178cd38528fe648a171222f7f686d7c39.tar.gz
- 4MB memory probe added (patch from Fabrice Bellard)
-rw-r--r--clext.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clext.c b/clext.c
index e589936..d842add 100644
--- a/clext.c
+++ b/clext.c
@@ -649,8 +649,18 @@ cirrus_extbios_85h:
mov cl, al
shr cl, #0x03
and cl, #0x03
+ cmp cl, #0x03
+ je c85h2
mov al, #0x04
shl al, cl
+ jmp c85h3
+c85h2:
+;; 4MB or 2MB
+ and al, #0x80
+ mov al, #0x20 ;; 2 MB
+ je c85h3
+ mov al, #0x40 ;; 4 MB
+c85h3:
pop dx
pop cx
ret