Optional PRIVILEGED_DATA wrapper + Partner-Supported-Ports submodule update (#1433)
- Instead, when MPU wrappers are not used, allow port to override
PRIVILEGED_FUNCTION, PRIVILEGED_DATA, or FREERTOS_SYSTEM_CALL
selectively, permitting custom section placement at link-time.
- Allows critical data to be placed in port-specific location for
improved performance, notably for cache-coherent SMP.
- Does not require enabling the full MPU wrappers.
diff --git a/include/mpu_wrappers.h b/include/mpu_wrappers.h
index ebbd5f9..69e6cbb 100644
--- a/include/mpu_wrappers.h
+++ b/include/mpu_wrappers.h
@@ -286,9 +286,17 @@
#else /* portUSING_MPU_WRAPPERS */
- #define PRIVILEGED_FUNCTION
- #define PRIVILEGED_DATA
- #define FREERTOS_SYSTEM_CALL
+ #ifndef PRIVILEGED_FUNCTION
+ #define PRIVILEGED_FUNCTION
+ #endif
+
+ #ifndef PRIVILEGED_DATA
+ #define PRIVILEGED_DATA
+ #endif
+
+ #ifndef FREERTOS_SYSTEM_CALL
+ #define FREERTOS_SYSTEM_CALL
+ #endif
#endif /* portUSING_MPU_WRAPPERS */
diff --git a/portable/ThirdParty/Partner-Supported-Ports b/portable/ThirdParty/Partner-Supported-Ports
index abc2210..fccbbce 160000
--- a/portable/ThirdParty/Partner-Supported-Ports
+++ b/portable/ThirdParty/Partner-Supported-Ports
@@ -1 +1 @@
-Subproject commit abc22103e1e6634b33457d4127bff1ab62f27f90
+Subproject commit fccbbce9bd7e227ee211b01fdbbcf133dc3a474a