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-secure
(Cherry picked from d0a43b8af0
)
pull/7875/head
parent
ace5df9079
commit
fb354752eb
|
@ -22,6 +22,8 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
|
||||
|
||||
#include "RTE_Components.h"
|
||||
#include CMSIS_device_header
|
||||
#include "tz_context.h"
|
||||
|
@ -198,3 +200,4 @@ uint32_t TZ_StoreContext_S (TZ_MemoryId_t id) {
|
|||
|
||||
return 1U; // Success
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue