test(cactus): prevent root region access from swd
This change adds TFTF and cactus test to permit checking a root region
cannot be accessed from secure world.
A hardcoded address marked Root in the GPT is shared to a secure
partition. The SP retrieves the region from the SPM, maps it and
attempts a read access to the region. It is expected to trigger a GPF
data abort on the PE caught by a custom exception handler.
Signed-off-by: Nabil Kahlouche <nabil.kahlouche@arm.com>
Change-Id: I882b53f784b8105e980d50014b74c4678b807567
diff --git a/tftf/tests/tests-invalid-access.mk b/tftf/tests/tests-invalid-access.mk
index f4d23a5..b1df9ba 100644
--- a/tftf/tests/tests-invalid-access.mk
+++ b/tftf/tests/tests-invalid-access.mk
@@ -10,3 +10,10 @@
$(addprefix tftf/tests/runtime_services/realm_payload/, \
realm_payload_test_helpers.c \
)
+
+TESTS_SOURCES += \
+ $(addprefix tftf/tests/runtime_services/secure_service/, \
+ ffa_helpers.c \
+ spm_common.c \
+ test_ffa_setup_and_discovery.c \
+)
\ No newline at end of file