git: 6799c73d1e35 - main - arm: retire bcopy

Mateusz Guzik mjg at FreeBSD.org
Mon Jul 19 09:53:52 UTC 2021


The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=6799c73d1e35cffc2bc86c49e1bc42faaf3f8e9d

commit 6799c73d1e35cffc2bc86c49e1bc42faaf3f8e9d
Author:     Mateusz Guzik <mjg at FreeBSD.org>
AuthorDate: 2021-07-19 09:53:02 +0000
Commit:     Mateusz Guzik <mjg at FreeBSD.org>
CommitDate: 2021-07-19 09:53:02 +0000

    arm: retire bcopy
    
    It is obsolete since ba96f37758412151 ("Use __builtin for various mem*
    and b* (e.g. bzero) routines.")
    
    Discussed with: cognet
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/arm/arm/support.S | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/sys/arm/arm/support.S b/sys/arm/arm/support.S
index bcb0b8cffbbb..9390b03f62a3 100644
--- a/sys/arm/arm/support.S
+++ b/sys/arm/arm/support.S
@@ -326,12 +326,7 @@ ENTRY(memcmp)
 	RET
 END(memcmp)
 
-ENTRY(bcopy)
-	/* switch the source and destination registers */
-	eor     r0, r1, r0
-	eor     r1, r0, r1
-	eor     r0, r1, r0
-EENTRY(memmove)
+ENTRY(memmove)
 	/* Do the buffers overlap? */
 	cmp	r0, r1
 	RETeq		/* Bail now if src/dst are the same */
@@ -736,8 +731,7 @@ EENTRY(memmove)
 .Lmemmove_bsrcul1l4:
 	add	r1, r1, #1
 	b	.Lmemmove_bl4
-EEND(memmove)
-END(bcopy)
+END(memmove)
 
 /* LINTSTUB: Func: void *memcpy(void *dst, const void *src, size_t len) */
 ENTRY(memcpy)


More information about the dev-commits-src-all mailing list