arch_armv6m
ARMv6-M primitives shared by Cortex-M0+ targets.
RP2040-specific clock, reset, boot2, and peripheral setup do not belong here. The one chip-specific mechanism is the critical-section backend: RP2040 needs its SIO spinlock because PRIMASK excludes only the local core.
Modules
Section titled “Modules”Structs
Section titled “Structs”Armv6mArch
Section titled “Armv6mArch”struct Armv6mArch;Implements: Architecture
TaskContext
Section titled “TaskContext”struct TaskContext { pub stack_pointer: u32,}Pointer to the software-plus-hardware frame on a task’s own stack.
Implements: TaskContext
Functions
Section titled “Functions”fault_info
Section titled “fault_info”unsafe fn fault_info(frame: *const u32, cause: u32, address: u32) -> hal::arch::FaultInfoConvert a Cortex-M fault frame into the kernel’s neutral diagnostic form.
Safety
Section titled “Safety”frame must point to the eight-word hardware exception frame supplied by
the Cortex-M exception entry sequence and remain readable for this call.
References: FaultInfo