core/bcopy32.inc: provide correct output esi/edi from bcopy
authorH. Peter Anvin <hpa@zytor.com>
Wed, 13 May 2009 23:19:16 +0000 (16:19 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 13 May 2009 23:19:16 +0000 (16:19 -0700)
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>
core/bcopy32.inc

index 9e785f1..aefcddb 100644 (file)
 ;      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