]> git.baikalelectronics.ru Git - uboot.git/commit
arm: Make arch specific memcpy thumb-safe.
authorKlaus Goger <klaus.goger@theobroma-systems.com>
Thu, 26 Apr 2018 18:18:10 +0000 (20:18 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 16 Nov 2018 21:51:57 +0000 (16:51 -0500)
commitbe54cac5fd5c60a885aa644e37b0dd9fc63198c0
tree7aacb588b50183b609350b18e13abe9afca5588b
parent66501fb851c98d48b28a2af53b58879f7b7715d4
arm: Make arch specific memcpy thumb-safe.

The current arch implementation of memcpy cannot be called
from thumb code, because it does not use bx instructions on return.
This patch addresses that. Note, that this patch does not touch
the hot loop of memcpy, so performance is not affected.

Tested on MXS (arm926ejs) with and without thumb-mode enabled.

Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
Signed-off-by: Christoph Muellner <christoph.muellner@theobroma-systems.com>
arch/arm/lib/memcpy.S