[rtems commit] arm: Fix AARCH32_PMSA_DATA_READ_WRITE_CACHED

Sebastian Huber sebh at rtems.org
Tue Nov 30 07:11:50 UTC 2021


Module:    rtems
Branch:    master
Commit:    7fec89e24d5c5874599f4caacfdba43d42f25f7a
Changeset: http://git.rtems.org/rtems/commit/?id=7fec89e24d5c5874599f4caacfdba43d42f25f7a

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Nov 29 14:54:21 2021 +0100

arm: Fix AARCH32_PMSA_DATA_READ_WRITE_CACHED

Fix definition of AARCH32_PMSA_DATA_READ_WRITE_CACHED.  Since
AARCH32_PMSA_ATTR_AP_EL1_RW_EL0_NO is zero, this fix is only cosmetic.

Update #4202.

---

 cpukit/score/cpu/arm/include/rtems/score/aarch32-pmsa.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/score/cpu/arm/include/rtems/score/aarch32-pmsa.h b/cpukit/score/cpu/arm/include/rtems/score/aarch32-pmsa.h
index a12bf99..6d36de4 100644
--- a/cpukit/score/cpu/arm/include/rtems/score/aarch32-pmsa.h
+++ b/cpukit/score/cpu/arm/include/rtems/score/aarch32-pmsa.h
@@ -154,7 +154,7 @@ extern "C" {
 #define AARCH32_PMSA_DATA_READ_WRITE_CACHED \
   ( AARCH32_PMSA_ATTR_EN | \
     AARCH32_PMSA_ATTR_XN | \
-    AARCH32_PMSA_ATTR_AP_EL1_RW_EL0_NO | \
+    AARCH32_PMSA_ATTR_AP( AARCH32_PMSA_ATTR_AP_EL1_RW_EL0_NO ) | \
     AARCH32_PMSA_ATTR_SH( AARCH32_PMSA_ATTR_SH_NO ) | \
     AARCH32_PMSA_ATTR_IDX( 0U ) )
 



More information about the vc mailing list