mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-01 11:53:53 -04:00
Add removed unprivileged access check to ARM_CRx_MPU xPortIsAuthorizedToAccessBuffer() (#1016)
* Add in a removed check for if a task is attempting to read a variable from a location it has write access to in xPortIsAuthorizedToAccessBuffer. * Add in a portDONT_DISCARD symbol as well.
This commit is contained in:
parent
345a86d49b
commit
a455b86bd3
2 changed files with 10 additions and 1 deletions
|
@ -221,6 +221,13 @@ typedef uint32_t TickType_t;
|
|||
*/
|
||||
#define portMEMORY_BARRIER() __asm volatile( "" ::: "memory" )
|
||||
|
||||
/**
|
||||
* @brief Ensure a symbol isn't removed from the compilation unit.
|
||||
*
|
||||
* @ingroup Port Interface Specifications
|
||||
*/
|
||||
#define portDONT_DISCARD __attribute__( ( used ) )
|
||||
|
||||
/**
|
||||
* @brief Defines if the tick count can be accessed atomically.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue