OSDN Git Service

arm64: Import latest memcpy()/memmove() implementation
authorRobin Murphy <robin.murphy@arm.com>
Thu, 27 May 2021 15:34:46 +0000 (16:34 +0100)
committerWill Deacon <will@kernel.org>
Tue, 1 Jun 2021 17:34:38 +0000 (18:34 +0100)
commit285133040e6ce0e6f37db962f2b4dad10ea46da0
tree21f5c3e9cb30a85bcb53363042ae5c8fc3ffc236
parentb6c4ea48415d26ec08fb67fbbd3eefdb1f96ffa6
arm64: Import latest memcpy()/memmove() implementation

Import the latest implementation of memcpy(), based on the
upstream code of string/aarch64/memcpy.S at commit afd6244 from
https://github.com/ARM-software/optimized-routines, and subsuming
memmove() in the process.

Note that for simplicity Arm have chosen to contribute this code
to Linux under GPLv2 rather than the original MIT license.

Note also that the needs of the usercopy routines vs. regular memcpy()
have now diverged so far that we abandon the shared template idea
and the damage which that incurred to the tuning of LDP/STP loops.
We'll be back to tackle those routines separately in future.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/3c953af43506581b2422f61952261e76949ba711.1622128527.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/lib/Makefile
arch/arm64/lib/memcpy.S
arch/arm64/lib/memmove.S [deleted file]