From 49ab568effb7f808c7e0537f3ef8a8a4673e0175 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Thu, 24 May 2018 21:11:24 +0000 Subject: [PATCH] Make memmove an alias for memcpy memcpy was an alias for bcopy with arg swap. This code handles overlapping copies, so making memmove an alias is safe. We can eliminate the call from libkern's memmove to this bcopy as a result. Differential Revision: https://reviews.freebsd.org/D15374 --- sys/conf/files.mips | 1 - sys/mips/mips/bcopy.S | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/conf/files.mips b/sys/conf/files.mips index 76bd63f5ebe8..26de233803be 100644 --- a/sys/conf/files.mips +++ b/sys/conf/files.mips @@ -61,7 +61,6 @@ libkern/ffsll.c standard libkern/fls.c standard libkern/flsl.c standard libkern/flsll.c standard -libkern/memmove.c standard libkern/cmpdi2.c optional mips | mipshf | mipsel | mipselhf libkern/ucmpdi2.c optional mips | mipshf | mipsel | mipselhf libkern/ashldi3.c standard diff --git a/sys/mips/mips/bcopy.S b/sys/mips/mips/bcopy.S index af71b0ded0cf..4205ca5e1680 100644 --- a/sys/mips/mips/bcopy.S +++ b/sys/mips/mips/bcopy.S @@ -65,6 +65,7 @@ __FBSDID("$FreeBSD$"); #define SIZEREG a2 LEAF(memcpy) +XLEAF(memmove) .set noat .set noreorder