Core: refactor error handling scenarios
Secure partition to partition calls are not permitted
while TF-M is initializing. Detect unpermitted function
calls.
Move some distributed request call checks to dedicated
function.
Provide more verbosity in about fault type.
Remove redundant checks.
Change-Id: I56719ebb1d7f4443178ebba9c023ba0ee1c6d0a3
Signed-off-by: Miklos Balint <miklos.balint@arm.com>
diff --git a/interface/include/tfm_api.h b/interface/include/tfm_api.h
index efe24e9..fea137a 100644
--- a/interface/include/tfm_api.h
+++ b/interface/include/tfm_api.h
@@ -45,13 +45,13 @@
enum tfm_status_e
{
TFM_SUCCESS = 0,
- TFM_PARTITION_PENDED,
TFM_PARTITION_BUSY,
- TFM_ERROR_PARTITION_ALREADY_PENDED,
TFM_ERROR_SECURE_DOMAIN_LOCKED,
TFM_ERROR_INVALID_PARAMETER,
TFM_ERROR_PARTITION_NON_REENTRANT,
TFM_ERROR_NS_THREAD_MODE_CALL,
+ TFM_ERROR_NOT_INITIALIZED,
+ TFM_ERROR_NO_ACTIVE_PARTITION,
TFM_ERROR_INVALID_EXC_MODE,
TFM_SECURE_LOCK_FAILED,
TFM_SECURE_UNLOCK_FAILED,