aboutsummaryrefslogtreecommitdiffstats
path: root/bcopy32.inc
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-11-09 16:56:02 -0800
committerH. Peter Anvin <hpa@zytor.com>2007-11-09 16:56:02 -0800
commit83f2f0a118e16eb7a0dc58e6b5d51c5745f7c1f3 (patch)
treebc45f827dd20b4342efeb16d6205b26d4fe3727c /bcopy32.inc
parent3861765b45fafc9891c46782c768fcbfbaafab0a (diff)
downloadsyslinux.git-83f2f0a118e16eb7a0dc58e6b5d51c5745f7c1f3.tar.gz
syslinux.git-83f2f0a118e16eb7a0dc58e6b5d51c5745f7c1f3.tar.xz
syslinux.git-83f2f0a118e16eb7a0dc58e6b5d51c5745f7c1f3.zip
In 32-bit mode, "xor eax,eax" is shorter than "xor ax,ax"
For 32-bit code, 32-bit operations are shorter than 16-bit operations, so use them.
Diffstat (limited to 'bcopy32.inc')
-rw-r--r--bcopy32.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/bcopy32.inc b/bcopy32.inc
index 87b82bb2..e3a22e13 100644
--- a/bcopy32.inc
+++ b/bcopy32.inc
@@ -536,7 +536,7 @@ trampoline_to_pm:
jmp PM_CS32:.next ; Synchronize and go to 32-bit mode
bits 32
-.next: xor ax,ax
+.next: xor eax,eax
lldt ax ; TR <- 0 to be nice to Intel VT
mov al,PM_TSS
ltr ax ; Bogus TSS to be nice to Intel VT