fix(ff-a): dispatch other world functions
Move FF-A related functions from other world module to plat ffa module
with different implementations based upon building the Hypervisor, SPMC,
or standalone image.
Change-Id: I85bedf58ddc074d41bb25ae2dcbcdaa407821562
Signed-off-by: Olivier Deprez <olivier.deprez@arm.com>
diff --git a/src/arch/aarch64/hypervisor/exceptions.S b/src/arch/aarch64/hypervisor/exceptions.S
index 1779ca5..7de43a8 100644
--- a/src/arch/aarch64/hypervisor/exceptions.S
+++ b/src/arch/aarch64/hypervisor/exceptions.S
@@ -450,8 +450,8 @@
/* Restore the other world SVE context from internal buffer. */
sve_context_restore:
- adrp x18, sve_other_world_context
- add x18, x18, :lo12: sve_other_world_context
+ adrp x18, sve_context
+ add x18, x18, :lo12: sve_context
ldr x0, [x19, #VCPU_CPU]
bl cpu_index
mov x20, #SVE_CTX_SIZE
@@ -522,8 +522,8 @@
/* Save the other world SVE context to internal buffer. */
sve_context_save:
- adrp x18, sve_other_world_context
- add x18, x18, :lo12: sve_other_world_context
+ adrp x18, sve_context
+ add x18, x18, :lo12: sve_context
ldr x0, [x19, #VCPU_CPU]
bl cpu_index
mov x20, #SVE_CTX_SIZE