aboutsummaryrefslogtreecommitdiff
path: root/interface
diff options
context:
space:
mode:
authorAntonio de Angelis <Antonio.deAngelis@arm.com>2021-04-28 13:52:13 +0100
committerAntonio de Angelis <Antonio.deAngelis@arm.com>2021-06-08 11:47:43 +0200
commitf8564cbf47ad942e90d379df4f34ee6c9ac6db5f (patch)
tree0fc315f4d61ab452c361757c34fd23874dffb4fe /interface
parent8d004f7772630c50c691966257ff1dfcaf79f3f3 (diff)
downloadtrusted-firmware-m-f8564cbf47ad942e90d379df4f34ee6c9ac6db5f.tar.gz
SPM: Invert tfm_spm_check_buffer_access() logic
Invert the logic for the tfm_spm_check_buffer_access() function to conform to "0 means success" and align to other APIs. Refactor the function itself to provide different return codes on error and a default failure return instead of default success. Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com> Change-Id: I40ef814a472375cdb2c40ac75dd5f605a9eccbfe
Diffstat (limited to 'interface')
-rw-r--r--interface/include/tfm_api.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/interface/include/tfm_api.h b/interface/include/tfm_api.h
index 9d0df047ac..1d4c9ee5a7 100644
--- a/interface/include/tfm_api.h
+++ b/interface/include/tfm_api.h
@@ -53,6 +53,7 @@ enum tfm_status_e
TFM_ERROR_NOT_INITIALIZED,
TFM_ERROR_NO_ACTIVE_PARTITION,
TFM_ERROR_INVALID_EXC_MODE,
+ TFM_ERROR_NOT_IN_RANGE,
TFM_SECURE_LOCK_FAILED,
TFM_SECURE_UNLOCK_FAILED,
TFM_ERROR_GENERIC = 0x1F,