mirror of https://github.com/ARMmbed/mbed-os.git
Call tfm_panic for SPM_PANIC
parent
faf5fcf795
commit
798e3c393a
|
@ -16,15 +16,18 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(TARGET_TFM)
|
#if defined(TARGET_TFM)
|
||||||
|
|
||||||
#include "interface/include/psa_service.h"
|
#include "interface/include/psa_service.h"
|
||||||
#define SPM_PANIC(format, ...) \
|
#define SPM_PANIC(format, ...) tfm_panic()
|
||||||
{ \
|
|
||||||
while(1){}; \
|
|
||||||
}
|
|
||||||
#elif defined(TARGET_MBED_SPM)
|
#elif defined(TARGET_MBED_SPM)
|
||||||
|
|
||||||
#include "TARGET_MBED_SPM/psa_defs.h"
|
#include "TARGET_MBED_SPM/psa_defs.h"
|
||||||
#include "TARGET_MBED_SPM/COMPONENT_SPE/spm_server.h"
|
#include "TARGET_MBED_SPM/COMPONENT_SPE/spm_server.h"
|
||||||
#include "TARGET_MBED_SPM/COMPONENT_SPE/spm_panic.h"
|
#include "TARGET_MBED_SPM/COMPONENT_SPE/spm_panic.h"
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#error "Compiling psa service header on non-secure target is not allowed"
|
#error "Compiling psa service header on non-secure target is not allowed"
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue