]> git.dujemihanovic.xyz Git - u-boot.git/commit
Makefile: ARMv7-M has no CPSR register
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 10 Apr 2020 09:10:32 +0000 (11:10 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 24 Apr 2020 14:51:32 +0000 (10:51 -0400)
commit0053d26bcc09fc4473572d51a9c754a409ffd562
tree1033d65bdd3e85bae6daef3de465de52361a4608
parenta555557ddc289af2f3d75e45fb808bcb2066162d
Makefile: ARMv7-M has no CPSR register

Compiling on ARMv7-M fails when trying to address the CPSR register which
is not available on this architecture.

Atomic functions refer to the CPSR register if compiled with
arch/arm/include/asm/proc-armv/system.h. On ARMv7-M we should hence
use arch/arm/thumb1/include/asm/proc-armv/system.h instead.

Cf. https://stackoverflow.com/questions/61097841/error-selected-processor-does-not-support-requested-special-purpose-register

Reported-by: Sicris Rey Embay <sicris.embay@gmail.com>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Makefile