Skip to content

Commit a21b050

Browse files
committed
"Secure Only" config option added for Armv8M port
1 parent ee8667f commit a21b050

5 files changed

Lines changed: 17 additions & 0 deletions

File tree

CMSIS/RTOS2/FreeRTOS/Config/ARMCM/FreeRTOSConfig.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@
196196
// <i> Default: 0
197197
#define configENABLE_MPU 0
198198

199+
// <q> Use TrustZone Secure Side Only
200+
// <i> This settings prevents FreeRTOS contex switch to Non-Secure side.
201+
// <i> Enable this setting when FreeRTOS runs on the Secure side only.
202+
#define configRUN_FREERTOS_SECURE_ONLY 0
203+
199204
// <q>Use TrustZone Security Extension
200205
// <i> Using TrustZone affects context handling.
201206
// <i> Enable TrustZone when FreeRTOS runs on the Non-Secure side and calls functions from the Secure side.

CMSIS/RTOS2/FreeRTOS/Examples/Blinky/RTE/RTOS/FreeRTOSConfig.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@
196196
// <i> Default: 0
197197
#define configENABLE_MPU 0
198198

199+
// <q> Use TrustZone Secure Side Only
200+
// <i> This settings prevents FreeRTOS contex switch to Non-Secure side.
201+
// <i> Enable this setting when FreeRTOS runs on the Secure side only.
202+
#define configRUN_FREERTOS_SECURE_ONLY 0
203+
199204
// <q>Use TrustZone Security Extension
200205
// <i> Using TrustZone affects context handling.
201206
// <i> Enable TrustZone when FreeRTOS runs on the Non-Secure side and calls functions from the Secure side.

CMSIS/RTOS2/FreeRTOS/Examples/Native_Blinky/RTE/RTOS/FreeRTOSConfig.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ extern uint32_t SystemCoreClock;
9595
#define configENABLE_FPU 1
9696
#define configENABLE_TRUSTZONE 1
9797
#define configMINIMAL_SECURE_STACK_SIZE ((uint32_t)1024)
98+
#define configRUN_FREERTOS_SECURE_ONLY 0
9899

99100
/* Cortex-M specific definitions. */
100101
#ifdef __NVIC_PRIO_BITS

CMSIS/RTOS2/FreeRTOS/Examples/TrustZone/NonSecure/RTE/RTOS/FreeRTOSConfig.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,11 @@
196196
// <i> Default: 0
197197
#define configENABLE_MPU 0
198198

199+
// <q> Use TrustZone Secure Side Only
200+
// <i> This settings prevents FreeRTOS contex switch to Non-Secure side.
201+
// <i> Enable this setting when FreeRTOS runs on the Secure side only.
202+
#define configRUN_FREERTOS_SECURE_ONLY 0
203+
199204
// <q>Use TrustZone Security Extension
200205
// <i> Using TrustZone affects context handling.
201206
// <i> Enable TrustZone when FreeRTOS runs on the Non-Secure side and calls functions from the Secure side.

Config/ARMCM/FreeRTOSConfig.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ extern uint32_t SystemCoreClock;
9595
#define configENABLE_FPU 1
9696
#define configENABLE_TRUSTZONE 1
9797
#define configMINIMAL_SECURE_STACK_SIZE ((uint32_t)1024)
98+
#define configRUN_FREERTOS_SECURE_ONLY 0
9899

99100
/* Cortex-M specific definitions. */
100101
#ifdef __NVIC_PRIO_BITS

0 commit comments

Comments
 (0)