feat(host_build): Enhance sample app to do Realm token creation
This patch enhances the sample application in host_build
platform to demonstrate Realm attestation flow using fake_host
platform. This also demonstrates the mock of S2 IPA to PA
translation, interrupt pre-emption during Attestation token
creation flow and also mocks Realm exit due to pending FIQ.
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
Change-Id: I69484ff661bada0c4ce9185c3d3b75bc0577aacc
diff --git a/plat/host/common/src/host_utils.c b/plat/host/common/src/host_utils.c
index 2ad3c17..8c0799a 100644
--- a/plat/host/common/src/host_utils.c
+++ b/plat/host/common/src/host_utils.c
@@ -202,6 +202,9 @@
ret = host_util_set_default_sysreg_cb("pmcr_el0",
INPLACE(PMCR_EL0_N, 31UL));
+ /* Set ISR_EL1 to 0 */
+ ret = host_util_set_default_sysreg_cb("isr_el1", 0UL);
+
/*
* Only check the return value of the last callback setup, to detect
* if we are out of callback slots.