From d4cbb4f5b886a6c69d1edc925a09d4a8a3716f51 Mon Sep 17 00:00:00 2001 From: Michael Jung Date: Thu, 20 Oct 2022 12:57:51 +0200 Subject: [PATCH] armv8-m: Fix MPU Attribute Indirection reg offsets Both MPU_MAIR0 and MPU_MAIR1 were off by 0x10. Signed-off-by: Michael Jung --- arch/arm/src/armv8-m/mpu.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/src/armv8-m/mpu.h b/arch/arm/src/armv8-m/mpu.h index 3feb412492..b6bf1e95d7 100644 --- a/arch/arm/src/armv8-m/mpu.h +++ b/arch/arm/src/armv8-m/mpu.h @@ -59,9 +59,9 @@ #define MPU_RBAR_A3_OFFSET 0x0024 #define MPU_RLAR_A3_OFFSET 0x0028 -#define MPU_MAIR_OFFSET(n) (0x0040 + 4 * ((n) >> 2)) -#define MPU_MAIR0_OFFSET 0x0040 /* MPU Memory Attribute Indirection Register 0 */ -#define MPU_MAIR1_OFFSET 0x0044 /* MPU Memory Attribute Indirection Register 1 */ +#define MPU_MAIR_OFFSET(n) (0x0030 + 4 * ((n) >> 2)) +#define MPU_MAIR0_OFFSET 0x0030 /* MPU Memory Attribute Indirection Register 0 */ +#define MPU_MAIR1_OFFSET 0x0034 /* MPU Memory Attribute Indirection Register 1 */ /* MPU Register Addresses */