summaryrefslogtreecommitdiff
path: root/mbr
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-25 16:59:54 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-25 16:59:54 -0800
commitee14b6efe1ab8674edea83fba7596857f0fcad21 (patch)
treeb58d3c937fb3aac4f634f8e15120ff7d2362bc12 /mbr
parentcdf1db11733ccf85fdc1378fa5548024c73513f5 (diff)
downloadsyslinux-ee14b6efe1ab8674edea83fba7596857f0fcad21.tar.gz
gptmbr: use cltq to extend a zero %eax into %edx
Using cltq (cdq) to clear %edx when %eax is zero is cheaper by one byte.
Diffstat (limited to 'mbr')
-rw-r--r--mbr/gptmbr.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbr/gptmbr.S b/mbr/gptmbr.S
index 9005183a..85b9fcdf 100644
--- a/mbr/gptmbr.S
+++ b/mbr/gptmbr.S
@@ -112,7 +112,7 @@ next:
/* Load partition table header */
xorl %eax,%eax
- xorl %edx,%edx
+ cltd
incw %ax /* %edx:%eax = 1 */
movw $phdr, %bx
pushw %bx /* -8(%bp) phdr == bootsect */