diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-05-13 16:19:16 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-05-13 16:19:16 -0700 |
commit | 4c663a97165bf7542b9f0825015bd22eb348aa9b (patch) | |
tree | b2a7bce94b1f6d3b77ae822ed9e00c5d6101f458 | |
parent | 9e3e0d23cb07fba26fa509ca9cf98e1d54cffe8e (diff) | |
download | syslinux-4c663a97165bf7542b9f0825015bd22eb348aa9b.tar.gz |
core/bcopy32.inc: provide correct output esi/edi from bcopy
Make sure the outputs from the bcopy routine are set correctly.
pm_bcopy doesn't do this for us, so we have to do that ourselves.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r-- | core/bcopy32.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/bcopy32.inc b/core/bcopy32.inc index 9e785f1f..aefcddbe 100644 --- a/core/bcopy32.inc +++ b/core/bcopy32.inc @@ -45,8 +45,14 @@ ; EDI - first byte after target ; bcopy: jecxz .ret + push esi + push edi + push ecx push word pm_bcopy call pm_call + pop ecx + pop edi + pop esi add edi,ecx add esi,ecx .ret: ret |