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/ffa_memory.c b/src/ffa_memory.c
index 8b28191..f92957b 100644
--- a/src/ffa_memory.c
+++ b/src/ffa_memory.c
@@ -8,8 +8,8 @@
#include "hf/ffa_memory.h"
-#include "hf/arch/ffa_memory_handle.h"
#include "hf/arch/other_world.h"
+#include "hf/arch/plat/ffa.h"
#include "hf/api.h"
#include "hf/check.h"
@@ -159,7 +159,7 @@
if (handle == FFA_MEMORY_HANDLE_INVALID) {
memory_region->handle =
- ffa_memory_handle_make(i);
+ plat_ffa_memory_handle_make(i);
} else {
memory_region->handle = handle;
}
@@ -222,7 +222,7 @@
* First look for a share_state allocated by us, in which case the
* handle is based on the index.
*/
- if (ffa_memory_handle_allocated_by_current_world(handle)) {
+ if (plat_ffa_memory_handle_allocated_by_current_world(handle)) {
index = ffa_memory_handle_get_index(handle);
if (index < MAX_MEM_SHARES) {
share_state = &share_states.share_states[index];