Sat Jul 24 05:29:26 2021 UTC ()
For evbppc, use C version of memcpy(3), memcmp(3), and memmove(3)
consistently for *.{po,pico,go} (for RUMP), in order to avoid
alignment faults for 403.


(rin)
diff -r1.31 -r1.32 src/sys/lib/libkern/arch/powerpc/Makefile.inc

cvs diff -r1.31 -r1.32 src/sys/lib/libkern/arch/powerpc/Makefile.inc (expand / switch to unified diff)

--- src/sys/lib/libkern/arch/powerpc/Makefile.inc 2011/07/02 03:35:03 1.31
+++ src/sys/lib/libkern/arch/powerpc/Makefile.inc 2021/07/24 05:29:26 1.32
@@ -1,15 +1,17 @@ @@ -1,15 +1,17 @@
1# $NetBSD: Makefile.inc,v 1.31 2011/07/02 03:35:03 matt Exp $ 1# $NetBSD: Makefile.inc,v 1.32 2021/07/24 05:29:26 rin Exp $
2 2
3SRCS+= bswap16.c bswap32.c 3SRCS+= bswap16.c bswap32.c
4SRCS+= htonl.c htons.c ntohl.c ntohs.c 4SRCS+= htonl.c htons.c ntohl.c ntohs.c
5SRCS+= syncicache.c 5SRCS+= syncicache.c
6 6
7SRCS+= ffs.S memset.S strlen.S 7SRCS+= ffs.S memset.S strlen.S
8SRCS+= gprsavrest.S 8SRCS+= gprsavrest.S
9 9
10# Disable the asm versions on evbppc because they break the Explora 10# Disable the asm versions on evbppc because they break the Explora
11.if ${MACHINE} == "evbppc" 11.if ${MACHINE} == "evbppc"
12memcpy.o: memcpy.c 12. for name in memcmp memcpy memmove
13memcmp.o: memcmp.c 13. for suffix in o po pico go
14memmove.o: memmove.c 14${name}.${suffix}: ${name}.c
 15. endfor
 16. endfor
15.endif 17.endif