]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: global_data: make set_gd() work for armv5 and armv6
authorMarek Behún <marek.behun@nic.cz>
Thu, 20 May 2021 11:24:09 +0000 (13:24 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 24 May 2021 18:21:30 +0000 (14:21 -0400)
commit82b63e95410ebca0bbfd343ce163299a44a2d932
tree8d42fbd943049890b5033729da4015014a43d2c4
parent1b457e753ec8a7bc1e8280e6bc58dcd727e95f47
ARM: global_data: make set_gd() work for armv5 and armv6

The Thumb instruction `ldr` is able to move high registers only from
armv7. For armv5 and armv6 we have to use `mov`.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/arm/include/asm/global_data.h