Skip to content

hal::mpu

MPU (Memory Protection Unit) manager trait.

Legacy hooks, not the active isolated-task contract. The kernel does not call these hooks at boot or on context switches; the existing Xtensa implementation is a no-op. See crate::isolation for validated task grants.

struct TaskDescriptor {
pub id: TaskId,
pub stack_base: u32,
pub stack_size: u32,
pub data_regions: &'static [RegionDescriptor],
}

Scheduler-facing task descriptor read by the MPU manager.

References: RegionDescriptor, TaskId

trait MpuManager {
fn configure_region(index: u8, desc: &RegionDescriptor)
fn activate_task_regions(task: &TaskDescriptor)
fn clear_user_regions()
}

Manages the hardware MPU regions for task isolation.