diff options
author | Zelalem Aweke <zelalem.aweke@arm.com> | 2021-07-08 17:13:09 -0500 |
---|---|---|
committer | Zelalem Aweke <zelalem.aweke@arm.com> | 2021-10-01 16:54:44 -0500 |
commit | 4693ff7225faadc5ad1bcd1c2fb3fbbb8fe1aed0 (patch) | |
tree | 3f024cf0b656e215ef3351f42b5e8418d3ccb911 /include/common/ep_info.h | |
parent | 81c272b3b71af38bc5cfb10bbe5722e328a1578e (diff) | |
download | arm-trusted-firmware-4693ff7225faadc5ad1bcd1c2fb3fbbb8fe1aed0.tar.gz |
feat(rme): add Realm security state definition
FEAT_RME introduces two additional security states,
Root and Realm security states. This patch adds Realm
security state awareness to SMCCC helpers and entry point info
structure.
Signed-off-by: Zelalem Aweke <zelalem.aweke@arm.com>
Change-Id: I9cdefcc1aa71259b2de46e5fb62b28d658fa59bd
Diffstat (limited to 'include/common/ep_info.h')
-rw-r--r-- | include/common/ep_info.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/common/ep_info.h b/include/common/ep_info.h index 4bfa1fa6a..771572ce9 100644 --- a/include/common/ep_info.h +++ b/include/common/ep_info.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2019, ARM Limited and Contributors. All rights reserved. + * Copyright (c) 2017-2021, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -18,14 +18,21 @@ #define SECURE EP_SECURE #define NON_SECURE EP_NON_SECURE +#define REALM EP_REALM +#if ENABLE_RME +#define sec_state_is_valid(s) (((s) == SECURE) || \ + ((s) == NON_SECURE) || \ + ((s) == REALM)) +#else #define sec_state_is_valid(s) (((s) == SECURE) || ((s) == NON_SECURE)) +#endif #define PARAM_EP_SECURITY_MASK EP_SECURITY_MASK #define NON_EXECUTABLE EP_NON_EXECUTABLE #define EXECUTABLE EP_EXECUTABLE -/* Secure or Non-secure image */ +/* Get/set security state of an image */ #define GET_SECURITY_STATE(x) ((x) & EP_SECURITY_MASK) #define SET_SECURITY_STATE(x, security) \ ((x) = ((x) & ~EP_SECURITY_MASK) | (security)) |