diff options
author | Mingyang Sun <mingyang.sun@arm.com> | 2020-09-23 16:17:50 +0800 |
---|---|---|
committer | Mingyang Sun <mingyang.sun@arm.com> | 2020-10-27 15:25:21 +0800 |
commit | 45c6c204d509a2a04031744680060abe43bf49db (patch) | |
tree | 70e1758ea5864c33a4048d5a153d15e5e03961c6 /platform/include | |
parent | 78458aa49c41492c08f7ed464eb2150fd5873ede (diff) | |
download | trusted-firmware-m-45c6c204d509a2a04031744680060abe43bf49db.tar.gz |
HAL: Fix hal status type definition
CHAR_MIN may be defined as unsigned by default on some systems,
and the value is 0. Use SCHAR_MIN to make sure it is negative.
Tthe HAL design document is also updated.
Change-Id: Ie74f261f704430d9bb2688960f6a8b938ef4c375
Signed-off-by: Mingyang Sun <mingyang.sun@arm.com>
Diffstat (limited to 'platform/include')
-rw-r--r-- | platform/include/tfm_hal_defs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/include/tfm_hal_defs.h b/platform/include/tfm_hal_defs.h index e099077da2..34a0a8ea68 100644 --- a/platform/include/tfm_hal_defs.h +++ b/platform/include/tfm_hal_defs.h @@ -12,7 +12,7 @@ #include <stdint.h> enum tfm_hal_status_t { - TFM_HAL_ERROR_MEM_FAULT = CHAR_MIN, + TFM_HAL_ERROR_MEM_FAULT = SCHAR_MIN, TFM_HAL_ERROR_MAX_VALUE, TFM_HAL_ERROR_BAD_STATE, TFM_HAL_ERROR_NOT_SUPPORTED, |