On 3/30/2026 4:44 AM, Marek Vasut wrote:
> Add configuration for ARMv8-M aarch32 core, which are currently
> Cortex-M23/M33 cores. These cores are treated similar to ARMv7-M
> cores, except the code has to be compiled with matching compiler
> -march=armv8-m.main flag . These cores have no MMU, they have MPU,
> which is currently not configured.
>
> Unlike ARMv7-M, these cores have 512 interrupt vectors. While the
> SYS_ARM_ARCH should be set to 8, it is set to 7 because all of the
> initialization code is built from from arch/arm/cpu/armv7m and not
> armv8. Furthermore, CONFIG_ARM64 must be disabled, although DTs
> for devices using these cores do come from arch/arm64/boot/dts .
>
> To avoid excess duplication in Makefiles, introduce one new Kconfig
> symbol, CPU_V7M_V8M. The CPU_V7M_V8M cover both ARMv7-M and ARMv8-M
> cores.
>
> Signed-off-by: Marek Vasut <[email protected]>
> ---
> Cc: Casey Connolly <[email protected]>
> Cc: Heinrich Schuchardt <[email protected]>
> Cc: Ilias Apalodimas <[email protected]>
> Cc: Jerome Forissier <[email protected]> <[email protected]>
> Cc: Tom Rini <[email protected]>
> Cc: Udit Kumar <[email protected]>
> Cc: [email protected]
> ---
> V2: - Rename CPU_V78M to CPU_V7M_V8M
> - Isolate V7M specific and otherwise option bits in cpu.c
Thanks for v2 Marek,
Apart of name of config discussion over v1 [0].
For changes,
Acked-by: Udit Kumar <[email protected]>
[0] :
https://lore.kernel.org/all/[email protected]/
> ---
> Makefile | 8 ++++++--
> arch/arm/Kconfig | 15 +++++++++++++--
> arch/arm/Makefile | 2 ++
> arch/arm/cpu/armv7m/cpu.c | 10 ++++++++--
> arch/arm/include/asm/armv7_mpu.h | 2 +-
> arch/arm/include/asm/unified.h | 2 +-
> arch/arm/lib/Makefile | 6 +++---
> arch/arm/lib/bootm.c | 2 +-
> arch/arm/lib/crt0.S | 2 +-
> arch/arm/lib/relocate.S | 4 ++--
> arch/arm/lib/semihosting.S | 2 +-
> arch/arm/lib/vectors_m.S | 6 +++++-
> cmd/Kconfig | 2 +-
> dts/Makefile | 4 ++++
> lib/efi_selftest/Makefile | 2 +-
> [..]