xiaoxiang781216 commented on code in PR #10344:
URL: https://github.com/apache/nuttx/pull/10344#discussion_r1301833087


##########
arch/arm/src/armv8-m/mpu.h:
##########
@@ -351,6 +351,25 @@ void mpu_configure_region(uintptr_t base, size_t size,
                            MPU_RLAR_PXN); \
     } 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_RBAR_AP_RWNO,        \
+                           MPU_RLAR_NONCACHEABLE |  \
+                           MPU_RBAR_SH_INNER |      \

Review Comment:
   looks good.



-- 
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