mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-08 20:55:14 -05:00
Throw an error if configALLOW_UNPRIVILEGED_CRITICAL_SECTIONS is set to 1
This commit is contained in:
parent
b0ec6d0cc6
commit
fd19c0ee52
1 changed files with 7 additions and 0 deletions
|
|
@ -78,6 +78,13 @@ extern "C" {
|
|||
#endif /* configPROTECTED_KERNEL_OBJECT_POOL_SIZE */
|
||||
#endif /* configENABLE_ACCESS_CONTROL_LIST */
|
||||
|
||||
#ifndef configALLOW_UNPRIVILEGED_CRITICAL_SECTIONS
|
||||
#define configALLOW_UNPRIVILEGED_CRITICAL_SECTIONS 0
|
||||
#elif( configALLOW_UNPRIVILEGED_CRITICAL_SECTIONS == 1 )
|
||||
#error "This port does not support unprivileged tasks to enter a critical section"
|
||||
#endif /* configALLOW_UNPRIVILEGED_CRITICAL_SECTIONS */
|
||||
/* ------------------------- FreeRTOS Config Check ------------------------- */
|
||||
|
||||
/** @brief The size in Bytes that the Privileged System Call Stack should be.
|
||||
*
|
||||
* @ingroup MPU Privilege
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue