]> git.kernelconcepts.de Git - karo-tx-uboot.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)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 8 Sep 2015 20:47:09 +0000 (22:47 +0200)
commit1c3eeef67783eb4e8a67579fac3507fff617f3cd
tree2b68d4d0648b08d9c69f5e9c47168bd0e0573e95
parentaac081a37e419c0d627d4ca257689dae543403ac
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]