]> git.dujemihanovic.xyz Git - u-boot.git/commit
common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()
authorMatt Porter <mporter@konsulko.com>
Tue, 5 May 2015 19:00:23 +0000 (15:00 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 28 May 2015 12:18:23 +0000 (08:18 -0400)
commitf99993c10882f7dc8ec35993d5febe59aac01e6a
treec91edb5481c62885690884d2197a3634e1171652
parentc777efe3a1c3ea62123437a30468fa0b17a689b2
common/cmd_boot: keep ARM v7M in thumb mode during do_go_exec()

On ARM v7M, the processor will return to ARM mode when executing
a blx instruction with bit 0 of the address == 0. Always set it
to 1 to stay in thumb mode.

Signed-off-by: Matt Porter <mporter@konsulko.com>
arch/arm/lib/Makefile
arch/arm/lib/cmd_boot.c [new file with mode: 0644]