On Sun, Aug 21, 2022 at 04:34:20PM +0300, Sergei Antonov wrote: > 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 <sap...@gmail.com> > CC: Samuel Holland <sam...@sholland.org> > CC: Ye Li <ye...@nxp.com> > CC: Simon Glass <s...@chromium.org> > CC: Andre Przywara <andre.przyw...@arm.com> > CC: Marek Vasut <ma...@denx.de> > CC: Sean Anderson <sean.ander...@seco.com> > CC: Tom Rini <tr...@konsulko.com>
Applied to u-boot/next, thanks! -- Tom
signature.asc
Description: PGP signature