[U-Boot] [PATCH v2 2/2] arm: Make arch specific memcpy thumb-safe.
Måns Rullgård
mans at mansr.com
Sat Apr 21 13:24:02 UTC 2018
Klaus Goger <klaus.goger at theobroma-systems.com> writes:
> 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 at theobroma-systems.com>
> Signed-off-by: Christoph Muellner <christoph.muellner at theobroma-systems.com>
There are many more instances of mov to pc that ought to be fixed too.
Why not do them all at once rather than picking them off one by one as
they happen to break things?
--
Måns Rullgård
More information about the U-Boot
mailing list