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)
commitba08afe8377ac72f834f8baad38e9631957b2ea8
tree7aacb588b50183b609350b18e13abe9afca5588b
parentf41a824b23c57dee86ac03b55fa426f2371c1a8e
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