[rtems commit] arm: For AArch32 use non-shareable memory

Sebastian Huber sebh at rtems.org
Tue Jun 29 12:59:26 UTC 2021


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Jun 24 12:20:32 2021 +0200

arm: For AArch32 use non-shareable memory

The Cortex-R52 does not support cache coherency and the shareable memory
attribute.  If a region is configured to be shareable, then it falls
back to use non-cacheable memory.

Update #4202.

---

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

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 825a057..a12bf99 100644
--- a/cpukit/score/cpu/arm/include/rtems/score/aarch32-pmsa.h
+++ b/cpukit/score/cpu/arm/include/rtems/score/aarch32-pmsa.h
@@ -141,7 +141,7 @@ extern "C" {
   ( AARCH32_PMSA_ATTR_EN | \
     AARCH32_PMSA_ATTR_XN | \
     AARCH32_PMSA_ATTR_AP( AARCH32_PMSA_ATTR_AP_EL1_RO_EL0_NO ) |  \
-    AARCH32_PMSA_ATTR_SH( AARCH32_PMSA_ATTR_SH_OUTER ) | \
+    AARCH32_PMSA_ATTR_SH( AARCH32_PMSA_ATTR_SH_NO ) | \
     AARCH32_PMSA_ATTR_IDX( 0U ) )
 
 #define AARCH32_PMSA_DATA_READ_ONLY_UNCACHED \
@@ -155,7 +155,7 @@ extern "C" {
   ( AARCH32_PMSA_ATTR_EN | \
     AARCH32_PMSA_ATTR_XN | \
     AARCH32_PMSA_ATTR_AP_EL1_RW_EL0_NO | \
-    AARCH32_PMSA_ATTR_SH( AARCH32_PMSA_ATTR_SH_OUTER ) | \
+    AARCH32_PMSA_ATTR_SH( AARCH32_PMSA_ATTR_SH_NO ) | \
     AARCH32_PMSA_ATTR_IDX( 0U ) )
 
 #define AARCH32_PMSA_DATA_READ_WRITE_UNCACHED \



More information about the vc mailing list