fix(hftest): service set-up functions in core 0
Run the service set-up call backs only in the primary
core.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: Ie676db1c06ff485ef56b938e144053ddbae64e44
diff --git a/test/hftest/service_common.c b/test/hftest/service_common.c
index a2f3fc8..1ab491f 100644
--- a/test/hftest/service_common.c
+++ b/test/hftest/service_common.c
@@ -309,7 +309,10 @@
ctx->memory_size = 1048576;
}
- run_service_set_up(ctx, &fdt);
+ /* If boot vcpu, it means it is running in RTM_INIT. */
+ if (vcpu == 0) {
+ run_service_set_up(ctx, &fdt);
+ }
/* Receive the name of the service to run. */
ret = ffa_msg_wait();