[PATCH v2] arm: kirkwood: fix freeze on boot

Tom Rini trini at konsulko.com
Mon Jun 23 22:10:35 CEST 2025


On Mon, 23 Jun 2025 13:10:11 -0600, Tom Rini wrote:

> Commit 6fe50e395080 ("arm: asm/system.h: mrc and mcr need .arm if
> __thumb2__ is not set") is not a proper fix for the LTO link error
> mentioned in its description. It causes 32-bit arm instructions to be
> mixed with thumb instructions, which the Kirkwood SoCs do not support.
> For example, board_init_r() is mostly generated in Thumb-1 mode as
> expected since the build flags contain -mthumb -mthumb-interwork. The
> MCR instruction corresponding to writefr_extra_feature_reg() is also
> correcly emitted as a 32-bit ARM instruction (it cannot be encoded in
> Thumb-1 anyways). The problem is, the compiler inlines the MCR without
> generating the BX or BLX instruction which are needed to transition
> between the ARM and the Thumb-1 states. From the objdump output:
> 
> [...]

Applied to u-boot/master, thanks!

[1/1] arm: kirkwood: fix freeze on boot
      commit: 410d59095a9f2319585bd66152b31f72389dcdaf
-- 
Tom




More information about the U-Boot mailing list