summaryrefslogtreecommitdiff
path: root/mbr
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-02-25 15:25:29 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-02-25 15:25:29 -0800
commit45ba7656f6bf6b46ed9e82fd257340b023f6d457 (patch)
tree1d8f065884ab12b0b08cbb37ca81c01e0cb9f27c /mbr
parentbd68053c3c50a344fb412a476302900e298d53ee (diff)
downloadsyslinux-45ba7656f6bf6b46ed9e82fd257340b023f6d457.tar.gz
gptmbr: use xchgw %ax,... instead of movw %ax,... when %ax is dead
xhcgw with %ax and a register is one byte shorter than movw with %ax if %ax is then dead.
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 20a46a25..8bc5e41d 100644
--- a/mbr/gptmbr.S
+++ b/mbr/gptmbr.S
@@ -161,7 +161,7 @@ find_part:
.ascii "Boot partition not found\r\n"
found_part:
- movw %ax,%cx /* Set up %cx for rep movsb further down */
+ xchgw %ax,%cx /* Set up %cx for rep movsb further down */
movw $dssi_out,%di
pushw %di