Browse Source

Core(M): Fixed MPUv7 inner cache policy evaluation in ARM_MPU_ACCESS_NORMAL definition. (#532)

Change-Id: Ie796c33e671e410c27602961694aaae0bf5e490a
Jonatan Antoni 6 năm trước cách đây
mục cha
commit
b36ead3172
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      CMSIS/Core/Include/mpu_armv7.h

+ 1 - 1
CMSIS/Core/Include/mpu_armv7.h

@@ -154,7 +154,7 @@
 * \param InnerCp Configures the inner cache policy.
 * \param IsShareable Configures the memory as shareable or non-shareable.
 */ 
-#define ARM_MPU_ACCESS_NORMAL(OuterCp, InnerCp, IsShareable) ARM_MPU_ACCESS_((4U | (OuterCp)), IsShareable, ((InnerCp) & 2U), ((InnerCp) & 1U))
+#define ARM_MPU_ACCESS_NORMAL(OuterCp, InnerCp, IsShareable) ARM_MPU_ACCESS_((4U | (OuterCp)), IsShareable, ((InnerCp) >> 1U), ((InnerCp) & 1U))
 
 /**
 * MPU Memory Access Attribute non-cacheable policy.