projects
/
profile
/
ivi
/
syslinux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd68053
)
gptmbr: use xchgw %ax,... instead of movw %ax,... when %ax is dead
author
H. Peter Anvin
<hpa@zytor.com>
Mon, 25 Feb 2008 23:25:29 +0000
(15:25 -0800)
committer
H. Peter Anvin
<hpa@zytor.com>
Mon, 25 Feb 2008 23:25:29 +0000
(15:25 -0800)
xhcgw with %ax and a register is one byte shorter than movw with %ax
if %ax is then dead.
mbr/gptmbr.S
patch
|
blob
|
history
diff --git
a/mbr/gptmbr.S
b/mbr/gptmbr.S
index
20a46a2
..
8bc5e41
100644
(file)
--- 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