diff options
author | Subhasish Ghosh <subhasish.ghosh@arm.com> | 2021-11-14 17:39:41 +0000 |
---|---|---|
committer | Soby Mathew <soby.mathew@arm.com> | 2021-12-07 15:55:56 +0100 |
commit | 8a4ea96889427fdca49069ee7f9266925692d9e7 (patch) | |
tree | 21c23016c357d85af1bdd4f128df563ace9b802c | |
parent | ab4b6d10d7ae5a765d7056b0a05c211b4c0220de (diff) | |
download | tf-a-tests-8a4ea96889427fdca49069ee7f9266925692d9e7.tar.gz |
fix(rme/fid): align RMI FIDs with SMCCC
This patch allocates the RMI FIDs from the Standard
Secure Service call range of SMCCC.
Signed-off-by: Subhasish Ghosh <subhasish.ghosh@arm.com>
Change-Id: I9fafa971d5196835603deff3875ec47f51f8ee23
-rw-r--r-- | include/runtime_services/realm_payload/realm_payload_test.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/include/runtime_services/realm_payload/realm_payload_test.h b/include/runtime_services/realm_payload/realm_payload_test.h index c31dd6aa..8de3945c 100644 --- a/include/runtime_services/realm_payload/realm_payload_test.h +++ b/include/runtime_services/realm_payload/realm_payload_test.h @@ -7,14 +7,14 @@ #include <smccc.h> #include <tftf_lib.h> -#define RMI_FNUM_MIN_VALUE U(0x00) -#define RMI_FNUM_MAX_VALUE U(0x20) +#define RMI_FNUM_MIN_VALUE U(0x150) +#define RMI_FNUM_MAX_VALUE U(0x18F) /* Get RMI fastcall std FID from function number */ #define RMI_FID(smc_cc, func_num) \ ((SMC_TYPE_FAST << FUNCID_TYPE_SHIFT) | \ ((smc_cc) << FUNCID_CC_SHIFT) | \ - (OEN_ARM_START << FUNCID_OEN_SHIFT) | \ + (OEN_STD_START << FUNCID_OEN_SHIFT) | \ ((func_num) << FUNCID_NUM_SHIFT)) /* @@ -23,10 +23,9 @@ * always invoked by the Normal world, forwarded by RMMD and handled by the * RMM */ -#define RMI_FNUM_VERSION_REQ U(0) - -#define RMI_FNUM_GRAN_NS_REALM U(1) -#define RMI_FNUM_GRAN_REALM_NS U(2) +#define RMI_FNUM_VERSION_REQ U(0x150) +#define RMI_FNUM_GRANULE_DELEGATE U(0x151) +#define RMI_FNUM_GRANULE_UNDELEGATE U(0x152) /********************************************************************************/ @@ -34,8 +33,10 @@ /* RMI SMC64 FIDs handled by the RMMD */ #define RMI_RMM_REQ_VERSION RMI_FID(SMC_64, RMI_FNUM_VERSION_REQ) -#define SMC_RMM_GRANULE_DELEGATE RMI_FID(SMC_64, RMI_FNUM_GRAN_NS_REALM) -#define SMC_RMM_GRANULE_UNDELEGATE RMI_FID(SMC_64, RMI_FNUM_GRAN_REALM_NS) +#define SMC_RMM_GRANULE_DELEGATE RMI_FID(SMC_64, \ + RMI_FNUM_GRANULE_DELEGATE) +#define SMC_RMM_GRANULE_UNDELEGATE RMI_FID(SMC_64, \ + RMI_FNUM_GRANULE_UNDELEGATE) #define RMI_ABI_VERSION_GET_MAJOR(_version) ((_version) >> 16) #define RMI_ABI_VERSION_GET_MINOR(_version) ((_version) & 0xFFFF) |