/* * Copyright (c) 2018-2021, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * */ #include #include "fih.h" #include "utilities.h" #include "tfm_hal_platform.h" void tfm_core_panic(void) { fih_delay(); /* * FixMe: In the first stage, the SPM will restart the entire system when a * programmer error is detected in either the SPE or NSPE. * In the next stage, the specified error codes are also sent to any NSPE * management firmware. The NSPE management firmware can then decide to pass * those error codes back to the calling task or to use its own * functionality for terminating an execution context. */ tfm_hal_system_reset(); #ifdef TFM_FIH_PROFILE_ON fih_delay(); tfm_hal_system_reset(); #endif }