mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
ARMv7-M: Fix double allocation of MPU region in mmu.h
This commit is contained in:
@@ -357,7 +357,7 @@ static inline void mpu_priv_flash(uintptr_t base, size_t size)
|
||||
|
||||
/* Select the region */
|
||||
|
||||
putreg32(mpu_allocregion(), MPU_RNR);
|
||||
putreg32(region, MPU_RNR);
|
||||
|
||||
/* Select the region base address */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user