summaryrefslogtreecommitdiff
path: root/doc/build
diff options
context:
space:
mode:
authorSergei Antonov <[email protected]>2022-08-21 16:34:20 +0300
committerTom Rini <[email protected]>2022-09-02 13:40:42 -0400
commit583f1b2f10be36f86a2da3686d406bfd90cfbc70 (patch)
tree8a924f4209e806e7b896b460e8aaffc74f6f16a1 /doc/build
parentdc0d17c26a3a03634994c59adb0b657807827183 (diff)
arm: ARMv4 assembly compatibility
There is currently a problem that U-Boot can not work on ARMv4 because assembly imlementations of memcpy() and some other functions use "bx lr" instruction that is not available on ARMv4 ("mov pc, lr" should be used instead). A working preprocessor-based solution to this problem is found in arch/arm/lib/relocate.S. Move it to the "ret" macro in arch/arm/include/asm/assembler.h and change all "bx lr" code to "ret lr" in functions that may run on ARMv4. Linux source code deals with this problem in the same manner. v1 -> v2: Comment update. Pointed out by Andre Przywara. Signed-off-by: Sergei Antonov <[email protected]> CC: Samuel Holland <[email protected]> CC: Ye Li <[email protected]> CC: Simon Glass <[email protected]> CC: Andre Przywara <[email protected]> CC: Marek Vasut <[email protected]> CC: Sean Anderson <[email protected]> CC: Tom Rini <[email protected]>
Diffstat (limited to 'doc/build')
0 files changed, 0 insertions, 0 deletions