diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-11-09 16:56:02 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-11-09 16:56:02 -0800 |
commit | 83f2f0a118e16eb7a0dc58e6b5d51c5745f7c1f3 (patch) | |
tree | bc45f827dd20b4342efeb16d6205b26d4fe3727c | |
parent | 3861765b45fafc9891c46782c768fcbfbaafab0a (diff) | |
download | syslinux-83f2f0a118e16eb7a0dc58e6b5d51c5745f7c1f3.tar.gz |
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.
-rw-r--r-- | bcopy32.inc | 2 |
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 |