Skip to content

Commit e761e86

Browse files
author
Evan Johnson
committed
remove unused field
1 parent 2e70822 commit e761e86

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

arch/cortex-m/src/mpu.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,9 +148,6 @@ const MPU_BASE_ADDRESS: StaticRef<MpuRegisters> =
148148
pub struct MPU<const NUM_REGIONS: usize, const MIN_REGION_SIZE: usize> {
149149
/// MMIO reference to MPU registers.
150150
registers: StaticRef<MpuRegisters>,
151-
/// Monotonically increasing counter for allocated regions, used
152-
/// to assign unique IDs to `CortexMConfig` instances.
153-
config_count: Cell<NonZeroUsize>,
154151
/// Optimization logic. This is used to indicate which application the MPU
155152
/// is currently configured for so that the MPU can skip updating when the
156153
/// kernel returns to the same app.
@@ -162,7 +159,6 @@ impl<const NUM_REGIONS: usize, const MIN_REGION_SIZE: usize> MPU<NUM_REGIONS, MI
162159
assume(NUM_REGIONS == 8 || NUM_REGIONS == 16);
163160
Self {
164161
registers: MPU_BASE_ADDRESS,
165-
config_count: Cell::new(NonZeroUsize::MIN),
166162
hardware_is_configured_for: OptionalCell::empty(),
167163
}
168164
}

0 commit comments

Comments
 (0)