summaryrefslogtreecommitdiff
path: root/cactus
diff options
context:
space:
mode:
authorSandrine Bailleux <sandrine.bailleux@arm.com>2018-03-15 10:03:29 +0100
committerSandrine Bailleux <sandrine.bailleux@arm.com>2018-03-23 12:56:55 +0100
commitc4a96088776e43f9ab74f6b3dc1b28304601af7c (patch)
tree34ebe1fc3cf82d953395f4ca996ca30edfd7db80 /cactus
parentcbc235799c7f6677920d6157f613de5067bceefc (diff)
Cactus (legacy): Fix MM_COMMUNICATE calls test
Service ID #42 is not recognized by Cactus (it used to be in a previous version of the code) so the test fails. Introduce a new service ID (#2) that just makes Cactus return success. This service may be used to simply check the communication channel between a client and Cactus. Use this new service ID from TFTF instead of ID #42. Note that using this new service over the existing "sleep" service has 2 advantages: - It speeds up the tests. The timer service is mostly useful for testing the interrupt routing model but there's no point using it in the MM_COMMUNICATE tests. - It may be concurrently called from different CPUs. This is not the case of the "sleep" service, which involves a shared buffer. Change-Id: Ifa4391b69314845066912777b1db03ab78239547 Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
Diffstat (limited to 'cactus')
-rw-r--r--cactus/legacy/cactus_legacy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cactus/legacy/cactus_legacy.c b/cactus/legacy/cactus_legacy.c
index 43ea681..b6129f2 100644
--- a/cactus/legacy/cactus_legacy.c
+++ b/cactus/legacy/cactus_legacy.c
@@ -55,6 +55,9 @@ static int32_t cactus_handle_fast_request(int cc,
return SPM_SUCCESS;
}
+ case SPS_CHECK_ALIVE:
+ return SPM_SUCCESS;
+
default:
INFO("Unsupported MM_COMMUNICATE_AARCH64 call with service ID 0x%x, ignoring it\n",
sps->id);