aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2010-12-13 21:39:34 -0500
committerGene Cumm <gene.cumm@gmail.com>2011-03-09 21:07:03 -0500
commit4826c9996f0ac1d897042da1d545d105b29845c3 (patch)
treefdd8d1150278429b1ad8e1f34c0f8010c405644d
parent2962724484adb046e19a9b5dbfaadb69d1c4d1e4 (diff)
downloadsyslinux-4826c9996f0ac1d897042da1d545d105b29845c3.tar.gz
syslinux-4826c9996f0ac1d897042da1d545d105b29845c3.tar.xz
syslinux-4826c9996f0ac1d897042da1d545d105b29845c3.zip
mbr_ho.bin: Fix stack bug; also save/restore cx in another location
-rw-r--r--mbr/mbr_ho.S4
1 files changed, 3 insertions, 1 deletions
diff --git a/mbr/mbr_ho.S b/mbr/mbr_ho.S
index 8bb9d616..a73b4a66 100644
--- a/mbr/mbr_ho.S
+++ b/mbr/mbr_ho.S
@@ -298,15 +298,17 @@ wrhexb:
call wrhexn
popw %ax
call wrhexn
- pushw %cx
+ popw %cx
ret
wrhexw:
+ pushw %cx
movb $8, %cl
rorw %cl, %dx
call wrhexb
rorw %cl, %dx
call wrhexb
+ popw %cx
ret
ASCII_MARKER1 "HE"