Add MPU wrapper macro for moving PRIVILEGED_DATA

- User can define portMOVE_PRIVILEGED_DATA as a section
  attribute to move the PRIVILEGED_DATA section arbitrarily.
- 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.

Signed-off-by: Ian Thompson <ianst@cadence.com>
This commit is contained in:
Ian Thompson 2025-07-16 16:22:48 -07:00 committed by Ian Thompson
parent e146d6444c
commit 1b6a1ec666

View file

@ -280,6 +280,12 @@
#define PRIVILEGED_DATA __attribute__( ( section( "privileged_data" ) ) )
#define FREERTOS_SYSTEM_CALL __attribute__( ( section( "freertos_system_calls" ) ) )
#elif ( defined portMOVE_PRIVILEGED_DATA )
#define PRIVILEGED_FUNCTION
#define PRIVILEGED_DATA portMOVE_PRIVILEGED_DATA
#define FREERTOS_SYSTEM_CALL
#else /* portUSING_MPU_WRAPPERS */
#define PRIVILEGED_FUNCTION