]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Source/include/mpu_wrappers.h
Add support for statically allocated memory protected tasks - previously only dynamic...
[freertos] / FreeRTOS / Source / include / mpu_wrappers.h
index 7d3334282deca72fd3fbd037735615950cc70e75..622b0e2e02902757d21379fd19dc46f2a3026919 100644 (file)
@@ -177,8 +177,11 @@ only for ports that are using the MPU. */
                #define xEventGroupSync                                                 MPU_xEventGroupSync\r
                #define vEventGroupDelete                                               MPU_vEventGroupDelete\r
 \r
-               /* Remove the privileged function macro. */\r
+               /* Remove the privileged function macro, but keep the PRIVILEGED_DATA\r
+               macro so applications can place data in privileged access sections\r
+               (useful when using statically allocated objects). */\r
                #define PRIVILEGED_FUNCTION\r
+               #define PRIVILEGED_DATA __attribute__((section("privileged_data")))\r
 \r
        #else /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE */\r
 \r