Skip to content
Permalink
Browse files

arch: arm: mpu: fix outer inner WBWA non-shareable macro

Fix NORMAL_OUTER_INNER_WRITE_BACK_WRITE_READ_ALLOCATE_NONSHAREABLE, the
bufferable bit should be set, while the shareable one should not be set.

At the same time, rename it from ..._NONSHAREABLE to _NON_SHAREABLE to
keep the same naming convention for all macro. Given it's not (yet)
used, it should not be an issue.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
  • Loading branch information...
aurel32 authored and nashif committed Jul 8, 2018
1 parent 747b90c commit f5b00ff60ef516ba682f9374d14f601bd02eee3f
Showing with 2 additions and 2 deletions.
  1. +2 −2 include/arch/arm/cortex_m/mpu/arm_mpu_v7m.h
@@ -53,8 +53,8 @@
#define NORMAL_OUTER_INNER_WRITE_BACK_WRITE_READ_ALLOCATE_SHAREABLE \
((1 << MPU_RASR_TEX_Pos) |\
MPU_RASR_C_Msk | MPU_RASR_B_Msk | MPU_RASR_S_Msk)
#define NORMAL_OUTER_INNER_WRITE_BACK_WRITE_READ_ALLOCATE_NONSHAREABLE \
((1 << MPU_RASR_TEX_Pos) | MPU_RASR_C_Msk | MPU_RASR_S_Msk)
#define NORMAL_OUTER_INNER_WRITE_BACK_WRITE_READ_ALLOCATE_NON_SHAREABLE \
((1 << MPU_RASR_TEX_Pos) | MPU_RASR_C_Msk | MPU_RASR_B_Msk)
#define DEVICE_NON_SHAREABLE (2 << MPU_RASR_TEX_Pos)

/* Bit-masks to disable sub-regions. */

0 comments on commit f5b00ff

Please sign in to comment.
You can’t perform that action at this time.