From 672712ca8a99e6978ccd24a522c21b56d43eea64 Mon Sep 17 00:00:00 2001 From: itayzafrir Date: Wed, 20 Feb 2019 15:38:40 +0200 Subject: [PATCH] Add SPM_PANIC macro for TARGET_TFM --- .../crypto/COMPONENT_SPE/psa_crypto_access_control.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/components/TARGET_PSA/services/crypto/COMPONENT_SPE/psa_crypto_access_control.c b/components/TARGET_PSA/services/crypto/COMPONENT_SPE/psa_crypto_access_control.c index ec7ba0aebe..84df52973e 100644 --- a/components/TARGET_PSA/services/crypto/COMPONENT_SPE/psa_crypto_access_control.c +++ b/components/TARGET_PSA/services/crypto/COMPONENT_SPE/psa_crypto_access_control.c @@ -19,7 +19,15 @@ #include "psa_crypto_access_control.h" #include "psa_crypto_slot_management.h" + +#if defined(TARGET_TFM) +#define SPM_PANIC(format, ...) \ +{ \ + while(1){}; \ +} +#else #include "spm_panic.h" +#endif typedef struct psa_crypto_access_control_s { psa_key_handle_t key_handle;