[syslinux:master] mbr_ho.bin: Fix stack bug; also save/restore cx in another location
syslinux-bot for Gene Cumm
gene.cumm at gmail.com
Wed Mar 16 14:00:18 PDT 2011
Commit-ID: 4826c9996f0ac1d897042da1d545d105b29845c3
Gitweb: http://syslinux.zytor.com/commit/4826c9996f0ac1d897042da1d545d105b29845c3
Author: Gene Cumm <gene.cumm at gmail.com>
AuthorDate: Mon, 13 Dec 2010 21:39:34 -0500
Committer: Gene Cumm <gene.cumm at gmail.com>
CommitDate: Wed, 9 Mar 2011 21:07:03 -0500
mbr_ho.bin: Fix stack bug; also save/restore cx in another location
---
mbr/mbr_ho.S | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/mbr/mbr_ho.S b/mbr/mbr_ho.S
index 8bb9d61..a73b4a6 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"
More information about the Syslinux-commits
mailing list