diff options
author | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2019-01-30 16:07:36 +0000 |
---|---|---|
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2019-01-30 16:07:36 +0000 |
commit | 418ca0c3505885eeca960fdf91f51cdd507c8764 (patch) | |
tree | 8bb97e5e4002688ed97d1528c09f6af9adad0562 | |
parent | 6d7047dcb24325e0a782b47c0ad507b6a5b32746 (diff) | |
download | tf-a-tests-418ca0c3505885eeca960fdf91f51cdd507c8764.tar.gz |
Remove SMCCC 2.0 support
SMCCC v2.0 is no longer required for SPM, and won't be needed in the
future.
The SPM implementation based on SPCI and SPRT was using it, but it has
been adapted to SMCCC v1.0.
Change-Id: I624b32f9547274b50add4ea81b485cc9f5121e53
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
-rw-r--r-- | include/runtime_services/smccc.h | 9 | ||||
-rw-r--r-- | include/runtime_services/spci_svc.h | 7 | ||||
-rw-r--r-- | include/runtime_services/sprt_svc.h | 9 |
3 files changed, 12 insertions, 13 deletions
diff --git a/include/runtime_services/smccc.h b/include/runtime_services/smccc.h index 506a84f55..34930b6c6 100644 --- a/include/runtime_services/smccc.h +++ b/include/runtime_services/smccc.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, Arm Limited. All rights reserved. + * Copyright (c) 2018-2019, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -21,13 +21,6 @@ #define SMC_UNKNOWN -1 -/* TODO: Import SMCCC 2.0 properly instead of having this */ -#define FUNCID_NAMESPACE_SHIFT U(28) -#define FUNCID_NAMESPACE_MASK U(0x3) -#define FUNCID_NAMESPACE_WIDTH U(2) -#define FUNCID_NAMESPACE_SPRT U(2) -#define FUNCID_NAMESPACE_SPCI U(3) - /******************************************************************************* * Bit definitions inside the function id as per the SMC calling convention ******************************************************************************/ diff --git a/include/runtime_services/spci_svc.h b/include/runtime_services/spci_svc.h index eae4fb7fe..f0ea57e3b 100644 --- a/include/runtime_services/spci_svc.h +++ b/include/runtime_services/spci_svc.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, Arm Limited. All rights reserved. + * Copyright (c) 2018-2019, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -34,7 +34,10 @@ #define SPCI_FID_TUN_SHIFT U(24) #define SPCI_FID_TUN_MASK U(0x7) -#define SPCI_SMC(spci_fid) ((FUNCID_NAMESPACE_SPCI << FUNCID_NAMESPACE_SHIFT) | \ +#define OEN_SPCI_START U(0x30) +#define OEN_SPCI_END U(0x3F) + +#define SPCI_SMC(spci_fid) ((OEN_SPCI_START << FUNCID_OEN_SHIFT) | \ (U(1) << 31) | (spci_fid)) #define SPCI_MISC_32(misc_fid) ((SMC_32 << FUNCID_CC_SHIFT) | \ SPCI_FID_MISC_FLAG | \ diff --git a/include/runtime_services/sprt_svc.h b/include/runtime_services/sprt_svc.h index b6b51dd43..e662c28e8 100644 --- a/include/runtime_services/sprt_svc.h +++ b/include/runtime_services/sprt_svc.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018, Arm Limited. All rights reserved. + * Copyright (c) 2018-2019, Arm Limited. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -37,10 +37,13 @@ /* Definitions to build the complete SMC ID */ -#define SPRT_SMC_64(sprt_fid) ((FUNCID_NAMESPACE_SPRT << FUNCID_NAMESPACE_SHIFT) | \ +#define OEN_SPRT_START U(0x20) +#define OEN_SPRT_END U(0x2F) + +#define SPRT_SMC_64(sprt_fid) ((OEN_SPRT_START << FUNCID_OEN_SHIFT) | \ (U(1) << 31) | ((sprt_fid) & SPRT_FID_MASK) | \ (SMC_64 << FUNCID_CC_SHIFT)) -#define SPRT_SMC_32(sprt_fid) ((FUNCID_NAMESPACE_SPRT << FUNCID_NAMESPACE_SHIFT) | \ +#define SPRT_SMC_32(sprt_fid) ((OEN_SPRT_START << FUNCID_OEN_SHIFT) | \ (U(1) << 31) | ((sprt_fid) & SPRT_FID_MASK) | \ (SMC_32 << FUNCID_CC_SHIFT)) |