fix(spm): instruction permissions on memory sharing
- FFA_MEM_SHARE the instruction access to be used shall be NX,
however both sender and the borrower should leave it not specified.
- FFA_MEM_LEND/FFA_MEM_DONATE the lender must specify the instruction
permissions it wishes to receive on the retrieve request.
Signed-off-by: J-Alves <joao.alves@arm.com>
Change-Id: I0c6e49c30cbbca513644b592695f853bbdf1994b
diff --git a/include/runtime_services/spm_common.h b/include/runtime_services/spm_common.h
index c1b3698..9e7f1e6 100644
--- a/include/runtime_services/spm_common.h
+++ b/include/runtime_services/spm_common.h
@@ -119,7 +119,7 @@
bool memory_retrieve(struct mailbox_buffers *mb,
struct ffa_memory_region **retrieved, uint64_t handle,
ffa_id_t sender, ffa_id_t receiver,
- ffa_memory_region_flags_t flags);
+ ffa_memory_region_flags_t flags, uint32_t mem_func);
/**
* Helper to conduct a memory relinquish. The caller is usually the receiver,