aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-02-24 15:37:24 -0800
committerH. Peter Anvin <hpa@zytor.com>2009-02-24 15:37:24 -0800
commit8b9d34885d8a9d5f7e9da6fbc75735ce1a0c945b (patch)
tree43d6044b61be7817b01a112661d93b77e7f65018
parentb40e01859f8ce6ed552acbb3b087c931517a48d6 (diff)
downloadsyslinux-elf-8b9d34885d8a9d5f7e9da6fbc75735ce1a0c945b.tar.gz
syslinux-elf-8b9d34885d8a9d5f7e9da6fbc75735ce1a0c945b.tar.xz
syslinux-elf-8b9d34885d8a9d5f7e9da6fbc75735ce1a0c945b.zip
bcopy32: move descriptor count into ecx after reload
After having reloaded the descriptor buffer, we divide the byte count to get a descriptor count. That descriptor count belongs in ECX, not in EAX.
-rw-r--r--core/bcopy32.inc1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/bcopy32.inc b/core/bcopy32.inc
index 4ebbe3ca..2d6b2e92 100644
--- a/core/bcopy32.inc
+++ b/core/bcopy32.inc
@@ -665,6 +665,7 @@ shuffle_and_boot:
xor edx,edx
mov ecx,12
div ecx ; Convert to descriptor count
+ xchg ecx,eax
jmp .restart
;