[PATCH 0/2] ARM: v7m: reset loader-set CONTROL and M33 ACTLR at boot

From: Brad Hawthorne

Date: Tue Nov 24 2026 - 21:59:17 EST


Two fixes to __v7m_setup for state a boot loader can leave behind.
Both came up while bringing Linux up on an RP2350 (Cortex-M33), booted
from a Raspberry Pi pico-sdk loader; it is the board I tested the
deprecation series on.

Patch 1 affects any v7-M or v8-M kernel whose loader ran an FP
instruction, and reproduces under QEMU (mps2-an505). Patch 2 affects a
Cortex-M33 kernel built without CONFIG_ARM_MPU whose loader set
ACTLR.EXTEXCLALL, which the pico-sdk does by default; it is tested on
the RP2350, as QEMU does not model ACTLR.

I know the Cortex-M platforms are going in 7.5. These are for the
stable kernels that still carry them, and for the v8-M core while its
future is discussed.

These patches were written with an AI coding assistant (Claude Opus
5.5, Anthropic), as each patch says; I reviewed the reasoning and the
test results.

Brad Hawthorne (2):
ARM: v7m: clear CONTROL.FPCA before the boot SVC
ARM: v7m: clear the Cortex-M33's ACTLR.EXTEXCLALL at boot

arch/arm/include/asm/v7m.h | 3 +++
arch/arm/mm/proc-v7m.S | 17 ++++++++++++++++-
2 files changed, 19 insertions(+), 1 deletion(-)


base-commit: aebb7274476403040d582c61478df8f4a7bf9cd3
--
2.43.0