diff options
author | Marc Bonnici <marc.bonnici@arm.com> | 2021-08-24 19:04:45 +0100 |
---|---|---|
committer | Marc Bonnici <marc.bonnici@arm.com> | 2021-10-07 11:37:12 +0100 |
commit | 409e27181b97a14cc0ff820cffb7d040b724cc65 (patch) | |
tree | 3440113ecec526f5ffac3c38e1043ac7ab814eef | |
parent | 52756cb3d2b16df4e0c1255be4735c900c71d9b1 (diff) | |
download | arm-trusted-firmware-409e27181b97a14cc0ff820cffb7d040b724cc65.tar.gz |
spmc: Add FFA_ERROR Helper function
Change-Id: I34f5c739d9e5104dd2fd9496280dc0ede3b73738
Signed-off-by: Marc Bonnici <marc.bonnici@arm.com>
-rw-r--r-- | services/std_svc/spm/spmc/spmc_main.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/services/std_svc/spm/spmc/spmc_main.c b/services/std_svc/spm/spmc/spmc_main.c index 6f78b63e3..b0d6f7019 100644 --- a/services/std_svc/spm/spmc/spmc_main.c +++ b/services/std_svc/spm/spmc/spmc_main.c @@ -46,6 +46,17 @@ el3_lp_desc_t* get_el3_lp_array(void) { /******************************************************************************* + * Return FFA_ERROR with specified error code + ******************************************************************************/ +static uint64_t spmc_ffa_error_return(void *handle, int error_code) +{ + SMC_RET8(handle, FFA_ERROR, + FFA_TARGET_INFO_MBZ, error_code, + FFA_PARAM_MBZ, FFA_PARAM_MBZ, FFA_PARAM_MBZ, + FFA_PARAM_MBZ, FFA_PARAM_MBZ); +} + +/******************************************************************************* * This function will parse the Secure Partition Manifest for fetching seccure * partition specific memory region details. It will find base address, size, * memory attributes for each memory region and then add the respective region |