Fix endpoint ID in SPMC test
The SPMC test SP has a test case for checking the returned error for an
invalid direct request (where a2 is non-null, but also not a framework
message flag). However, this test case was using an invalid destination
endpoint ID, and was not actually testing the condition that it intended
to do. Fix this by using a valid destination for this message.
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>
Change-Id: I8340e4a7e4a935fc76747d41494da45810bc7212
diff --git a/components/service/spm_test/sp.c b/components/service/spm_test/sp.c
index fce494a..f20a15d 100644
--- a/components/service/spm_test/sp.c
+++ b/components/service/spm_test/sp.c
@@ -314,7 +314,7 @@
}
/* Non-null flags (W2) register */
- ffa_svc(FFA_MSG_SEND_DIRECT_REQ_64, (uint32_t)(src << 16 | 0x1000), 1, 0, 0, 0, 0, 0,
+ ffa_svc(FFA_MSG_SEND_DIRECT_REQ_64, (uint32_t)(src << 16 | dst), 1, 0, 0, 0, 0, 0,
&raw_params);
if (raw_params.a0 != FFA_ERROR || (uint32_t)raw_params.a2 != FFA_INVALID_PARAMETERS) {
EMSG("Unexpected error code: %d != %ld", FFA_INVALID_PARAMETERS, raw_params.a2);