test(rmm): add testcase for multiple rec on multiple cpu
Test creates and enter 8 recs on different CPUs.
Exercises CPU_ON, CPU_OFF and PSCI_AFFINITY_INFO
from realm.
Signed-off-by: Shruti Gupta <shruti.gupta@arm.com>
Change-Id: Iecc58ea79bfde28f307d1df99680d707e57a1d80
diff --git a/realm/realm_psci.c b/realm/realm_psci.c
index 2a5b951..a4a287b 100644
--- a/realm/realm_psci.c
+++ b/realm/realm_psci.c
@@ -74,15 +74,16 @@
void realm_secondary_entrypoint(u_register_t cxt_id)
{
- u_register_t my_mpidr;
+ u_register_t my_mpidr, id;
secondary_ep_t ep;
my_mpidr = read_mpidr_el1() & MPID_MASK;
ep = entrypoint[my_mpidr];
+ id = context_id[my_mpidr];
if (ep != NULL) {
entrypoint[my_mpidr] = NULL;
context_id[my_mpidr] = 0;
- (ep)(context_id[my_mpidr]);
+ (ep)(id);
} else {
/*
* Host can execute Rec directly without CPU_ON