Date: Thu, 24 May 2018 21:11:24 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r334181 - in head/sys: conf mips/mips Message-ID: <201805242111.w4OLBOtv009829@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: imp Date: Thu May 24 21:11:24 2018 New Revision: 334181 URL: https://svnweb.freebsd.org/changeset/base/334181 Log: 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 Modified: head/sys/conf/files.mips head/sys/mips/mips/bcopy.S Modified: head/sys/conf/files.mips ============================================================================== --- head/sys/conf/files.mips Thu May 24 20:43:41 2018 (r334180) +++ head/sys/conf/files.mips Thu May 24 21:11:24 2018 (r334181) @@ -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 Modified: head/sys/mips/mips/bcopy.S ============================================================================== --- head/sys/mips/mips/bcopy.S Thu May 24 20:43:41 2018 (r334180) +++ head/sys/mips/mips/bcopy.S Thu May 24 21:11:24 2018 (r334181) @@ -65,6 +65,7 @@ __FBSDID("$FreeBSD$"); #define SIZEREG a2 LEAF(memcpy) +XLEAF(memmove) .set noat .set noreorder
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805242111.w4OLBOtv009829>