ARM: v7m: reset loader-set CONTROL and M33 ACTLR at boot
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | ARM: v7m: clear CONTROL.FPCA before the boot SVCarch/ | +5 | 2 replies | |
| 2/2 | ARM: v7m: clear the Cortex-M33's ACTLR.EXTEXCLALL at bootarch/ arch/ | +14 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] ARM: v7m: reset loader-set CONTROL and M33 ACTLR at boot
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
Signature · 1 line
2.43.0