Fixed GetExtendedMemorySize(). My i486-DX4/75 didn't like the old routine.

svn path=/trunk/; revision=2376
This commit is contained in:
Eric Kohl 2001-11-17 00:00:33 +00:00
parent 60a1a5d26d
commit 5d289c12b2

View file

@ -46,19 +46,19 @@ EXTERN(_GetExtendedMemorySize)
cmpw $0,%ax cmpw $0,%ax
je .cmem je .cmem
andl $0xffff,%ebx movzwl %bx,%ebx
shll $6,%ebx shll $6,%ebx
andl $0xffff,%eax movzwl %ax,%eax
add %ebx,%eax addl %ebx,%eax
jmp .done_mem jmp .done_mem
.cmem: .cmem:
cmpw $0,%cx cmpw $0,%cx
je .oldstylemem je .oldstylemem
andl $0xffff,%edx movzwl %dx,%edx
shll $6,%edx shll $6,%edx
andl $0xffff,%ecx movzwl %cx,%ecx
addl %ecx,%edx addl %ecx,%edx
movl %edx,%eax movl %edx,%eax
jmp .done_mem jmp .done_mem