[PATCH v6 1/3] arm64: arch/arm/lib: Add optimized memset/memcpy/memmove functions
Tom Rini
trini at konsulko.com
Fri Sep 24 16:14:20 CEST 2021
On Thu, Sep 02, 2021 at 05:00:17PM +0200, Stefan Roese wrote:
> Ported from https://github.com/ARM-software/optimized-routines
>
> These files are included from this repository, including the latest
> git commit ID:
> string/aarch64/memcpy.S: afd6244a1f8d
> string/aarch64/memset.S: e823e3abf5f8
> string/asmdefs.h: e823e3abf5f8
>
> Note that memmove is also handled by the memcpy function.
>
> Please note that when adding these optimized functions as default memset
> memcpy functions in U-Boot, U-Boot fails to boot on the LX2160ARDB.
> After the initial ATF output, no U-Boot output is shown on the serial
> console. Some exception is triggered here in the very early boot process
> as some of the assembler opcodes need the caches to be enabled.
>
> Because of this, a follow-up patch will add a check to use a simple
> non-optimized memset for the "cache disabled" case.
>
> Note:
> I also integrated and tested with the Linux versions of these optimized
> functions. They are similar to the ones now integrated but these ARM
> versions are still a small bit faster.
>
> Signed-off-by: Stefan Roese <sr at denx.de>
Applied to u-boot/next, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210924/96bb6cc4/attachment.sig>
More information about the U-Boot
mailing list