Subject: Re: [pkg] perl not working
To: Ian Dall <Ian.Dall@dsto.defence.gov.au>
From: Matthias Pfaller <leo@dachau.marco.de>
List: port-pc532
Date: 06/25/1998 08:44:30
Ian Dall wrote:
> This is due to a bug in libc memmove and bcopy.
> I can confirm that when libc is fixed, perl works on the pc532.
> I understand, (but haven't tried) that memmove and bcopy have been
> fixed in current.
Oh sorry, I messed up again :-( After all you told me where you stumbled
over the bug, but the PR didn't trigger my memory. Yes, thank's to Ian's
diagnosis I was able to fix the bug. The -current libc shouldn't have
the problem Ian describes. I have appended what I changed in -current.
Matthias
RCS file: /cvsroot/src/lib/libc/arch/ns32k/string/memcpy.S,v
retrieving revision 1.4
retrieving revision 1.6
diff -u -r1.4 -r1.6
--- memcpy.S 1998/04/03 22:58:09 1.4
+++ memcpy.S 1998/05/28 22:07:22 1.6
@@ -73,7 +73,7 @@
*/
movd 3,r3
andd r2,r3
- movd 0(r1),0(r2)
+ movd 0(r1),tos /* Delay write in case src-dst < 4 */
negd r3,r3
addqd 4,r3
addd r3,r1
@@ -86,6 +86,16 @@
movsd
=20
movd r3,r0
+ movsb
+#if !defined(BCOPY)
+ movd B_ARG0,r0
+ movd tos,0(r0)
+#else
+ movd tos,0(B_ARG1)
+#endif
+ exit [r3]
+ ret ARGS
+
1: movsb
#if !defined(BCOPY)
movd B_ARG0,r0
--=20
Matthias Pfaller Software Entwicklung
marco Systemanalyse und Entwicklung GmbH Tel +49 8131 5161-41
Hans-B=F6ckler-Str. 2, D 85221 Dachau Fax +49 8131 5161-66
http://www.marco.de/ Email leo@dachau.marco.de