raiden00pl commented on code in PR #10328:
URL: https://github.com/apache/nuttx/pull/10328#discussion_r1301311803


##########
arch/arm/src/armv7-m/mpu.h:
##########
@@ -339,26 +339,47 @@ void mpu_configure_region(uintptr_t base, size_t size,
     } while (0)
 
 /****************************************************************************
- * Name: mpu_user_intsram
+ * Name: mpu_priv_intsram
  *
  * Description:
- *   Configure a region as user internal SRAM
+ *   Configure a region as privileged internal SRAM
  *
  ****************************************************************************/
 
-#define mpu_user_intsram(base, size) \
+#define mpu_priv_intsram(base, size) \
   do \
     { \
       /* The configure the region */ \
-      mpu_configure_region(base, size, \
+      mpu_configure_region(base, size,\
                            MPU_RASR_TEX_SO   | /* Ordered            */ \
                            MPU_RASR_C        | /* Cacheable          */ \
                                                /* Not Bufferable     */ \
                            MPU_RASR_S        | /* Shareable          */ \
-                           MPU_RASR_AP_RWRW    /* P:RW   U:RW        */ \
+                           MPU_RASR_AP_RWNO    /* P:RW   U:None      */ \
                                                /* Instruction access */); \
     } while (0)
 
+/****************************************************************************
+ * Name: mpu_priv_shmem
+ *
+ * Description:
+ *   Configure a region as privileged shared memory
+ *
+ ****************************************************************************/
+
+#define mpu_priv_shmem(base, size)                                      \
+  do                                                                    \
+    {                                                                   \
+      /* The configure the region */                                    \
+      mpu_configure_region(base, size,                                  \
+                           MPU_RASR_TEX_SO   | /* Ordered            */ \
+                                               /* Not Cacheable      */ \
+                                               /* Not Bufferable     */ \

Review Comment:
   moved to https://github.com/apache/nuttx/pull/10344



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to