feat(scheduled mode): initialize schedule mode for FFA_RUN
This patch performs the initialization of schedule mode and partition
runtime model for target SP upon FFA_RUN invocation.
Change-Id: I46346e96fe55e7d9be598996380c1877061fd0d6
Signed-off-by: Madhukar Pappireddy <madhukar.pappireddy@arm.com>
diff --git a/src/api.c b/src/api.c
index e61c7a6..557227e 100644
--- a/src/api.c
+++ b/src/api.c
@@ -920,6 +920,8 @@
goto out;
}
+ plat_ffa_init_schedule_mode_ffa_run(current, vcpu_locked);
+
/* It has been decided that the vCPU should be run. */
vcpu->cpu = current->cpu;
vcpu->state = VCPU_STATE_RUNNING;