From 4c663a97165bf7542b9f0825015bd22eb348aa9b Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 13 May 2009 16:19:16 -0700 Subject: [PATCH] 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 --- core/bcopy32.inc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/bcopy32.inc b/core/bcopy32.inc index 9e785f1..aefcddb 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 -- 2.7.4