From: H. Peter Anvin Date: Mon, 25 Feb 2008 23:25:29 +0000 (-0800) Subject: gptmbr: use xchgw %ax,... instead of movw %ax,... when %ax is dead X-Git-Tag: syslinux-3.64-pre1~1^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45ba7656f6bf6b46ed9e82fd257340b023f6d457;p=profile%2Fivi%2Fsyslinux.git 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. --- diff --git a/mbr/gptmbr.S b/mbr/gptmbr.S index 20a46a2..8bc5e41 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