]> git.baikalelectronics.ru Git - uboot.git/commit
spl: armv7m: to keep ARM v7M in thumb mode before booting next image
authorVikas Manocha <vikas.manocha@st.com>
Sun, 28 May 2017 19:55:08 +0000 (12:55 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 9 Jun 2017 01:00:27 +0000 (21:00 -0400)
commit586d31c8b46d2c2306c922ee3103bf2e01ecda10
tree424d34a36073323df3dc75f2f22fa6d13bbb1444
parentaed0aeb733d814a6f792e9976066bd4d72ab9cff
spl: armv7m: to keep ARM v7M in thumb mode before booting next image

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

At present, it is applied only for raw U-Boot. This patch moves it to just
before booting next image. This way armv7m will be in thumb mode for any image
like raw or image with header like zImage or standard U-Boot.

Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
common/spl/spl.c