mirror of https://github.com/ARMmbed/mbed-os.git
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-securepull/6483/head
parent
4043d95396
commit
d0a43b8af0
|
@ -25,6 +25,8 @@
|
|||
*
|
||||
*---------------------------------------------------------------------------*/
|
||||
|
||||
#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
|
||||
|
||||
#include "RTE_Components.h"
|
||||
#include CMSIS_device_header
|
||||
#include "tz_context.h"
|
||||
|
@ -201,3 +203,4 @@ uint32_t TZ_StoreContext_S (TZ_MemoryId_t id) {
|
|||
|
||||
return 1U; // Success
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue