projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
60a1a5d
)
Fixed GetExtendedMemorySize(). My i486-DX4/75 didn't like the old routine.
author
Eric Kohl
<eric.kohl@reactos.org>
Sat, 17 Nov 2001 00:00:33 +0000
(
00:00
+0000)
committer
Eric Kohl
<eric.kohl@reactos.org>
Sat, 17 Nov 2001 00:00:33 +0000
(
00:00
+0000)
svn path=/trunk/; revision=2376
freeldr/freeldr/mem.S
patch
|
blob
|
history
diff --git
a/freeldr/freeldr/mem.S
b/freeldr/freeldr/mem.S
index
631eb35
..
770a1de
100644
(file)
--- a/
freeldr/freeldr/mem.S
+++ b/
freeldr/freeldr/mem.S
@@
-46,19
+46,19
@@
EXTERN(_GetExtendedMemorySize)
cmpw $0,%ax
je .cmem
-
andl $0xffff
,%ebx
+
movzwl %bx
,%ebx
shll $6,%ebx
-
andl $0xffff
,%eax
- add
%ebx,%eax
+
movzwl %ax
,%eax
+ add
l
%ebx,%eax
jmp .done_mem
.cmem:
cmpw $0,%cx
je .oldstylemem
-
andl $0xffff
,%edx
+
movzwl %dx
,%edx
shll $6,%edx
-
andl $0xffff
,%ecx
+
movzwl %cx
,%ecx
addl %ecx,%edx
movl %edx,%eax
jmp .done_mem