Add support for statically allocated memory protected tasks - previously only dynamically allocated tasks could be memory protected.

This commit is contained in:
Richard Barry
2016-09-20 13:54:28 +00:00
parent 5c75e5a38a
commit 7cce089e40
17 changed files with 5302 additions and 36 deletions

View File

@ -177,8 +177,11 @@ only for ports that are using the MPU. */
#define xEventGroupSync MPU_xEventGroupSync
#define vEventGroupDelete MPU_vEventGroupDelete
/* Remove the privileged function macro. */
/* Remove the privileged function macro, but keep the PRIVILEGED_DATA
macro so applications can place data in privileged access sections
(useful when using statically allocated objects). */
#define PRIVILEGED_FUNCTION
#define PRIVILEGED_DATA __attribute__((section("privileged_data")))
#else /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE */