aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJ-Alves <joao.alves@arm.com>2021-11-30 14:59:03 +0000
committerJ-Alves <joao.alves@arm.com>2021-11-30 14:59:03 +0000
commit37277190fe299c30904fd797671d204a8ac9749a (patch)
tree56d586801cebed6bbaefd4bacabc409157cd4705
parent3a3894c8679ab728cadb54b500d084e6c38869bb (diff)
downloadtf-a-tests-37277190fe299c30904fd797671d204a8ac9749a.tar.gz
fix(ff-a): encoding of vCPU and receiver IDs
In the FFA_NOTIFICATION_GET interface the vCPU and receiver IDs were encoded in the wrong positions of w1, according to the FF-A v1.1 beta0 specification. This patch makes the encoding comply with the spec. Signed-off-by: J-Alves <joao.alves@arm.com> Change-Id: I9ad82d9cddf6c49e0142c027a06af8c214684959
-rw-r--r--tftf/tests/runtime_services/secure_service/ffa_helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tftf/tests/runtime_services/secure_service/ffa_helpers.c b/tftf/tests/runtime_services/secure_service/ffa_helpers.c
index cbc028ef..4525d6e4 100644
--- a/tftf/tests/runtime_services/secure_service/ffa_helpers.c
+++ b/tftf/tests/runtime_services/secure_service/ffa_helpers.c
@@ -596,7 +596,7 @@ smc_ret_values ffa_notification_get(ffa_id_t receiver, uint32_t vcpu_id,
{
smc_args args = {
.fid = FFA_NOTIFICATION_GET,
- .arg1 = (receiver << 16) | (vcpu_id),
+ .arg1 = (vcpu_id << 16) | (receiver),
.arg2 = flags,
.arg3 = FFA_PARAM_MBZ,
.arg4 = FFA_PARAM_MBZ,