]> git.baikalelectronics.ru Git - uboot.git/commit
tools: kwboot: Replace ARM mov + movt instruction pair by mov + orr
authorPali Rohár <pali@kernel.org>
Wed, 27 Oct 2021 18:57:01 +0000 (20:57 +0200)
committerStefan Roese <sr@denx.de>
Wed, 3 Nov 2021 05:45:27 +0000 (06:45 +0100)
commit39e39f29019f4e17afb36ea7e22769c79f7fde6d
treefec67dbeca2601a69e30332161034b6b18292a8a
parent0fd52fe6d53e5b709e949c34a450f4875373e19e
tools: kwboot: Replace ARM mov + movt instruction pair by mov + orr

Older Armada SoCs have custom ARMv5te compatible core which does not
support movt instruction. So replace mov + movt instruction pair used for
immediate move construction by mov + orr instructions which are supported
also by ARMv5te.

After this change kwboot ARM code should be compatible with any 32-bit ARM
core compatible by ARMv2 or new. At least GNU AS does not throw any error
or warning.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwboot.c