Skip to content

Commit d0a43b8

Browse files
author
Deepika
committed
CMSIS/RTX: Patch to conditionally compile
tz_context.c should be compiled only for secure world, definition of API's in tz_context.h should be part of secure binary/bootloader when building mbed-os as non-secure
1 parent 4043d95 commit d0a43b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmsis/TARGET_CORTEX_M/mbed_tz_context.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
*
2626
*---------------------------------------------------------------------------*/
2727

28+
#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
29+
2830
#include "RTE_Components.h"
2931
#include CMSIS_device_header
3032
#include "tz_context.h"
@@ -201,3 +203,4 @@ uint32_t TZ_StoreContext_S (TZ_MemoryId_t id) {
201203

202204
return 1U; // Success
203205
}
206+
#endif

0 commit comments

Comments
 (0)