msm: ADSPRPC: Map pages with execute permissions
Allow for mappings to have execute permissions in Stage 2 SMMU as dynamic shared object may get loaded and executed from these pages on the remote processor. Change-Id: I3d7fb2829defd8efc362253866587652f35e316b Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
This commit is contained in:
parent
3f00167fe4
commit
f9a4aed8c1
1 changed files with 2 additions and 2 deletions
|
@ -598,7 +598,7 @@ static int fastrpc_mmap_create(struct fastrpc_file *fl, int fd, unsigned attr,
|
|||
int srcVM[1] = {VMID_HLOS};
|
||||
int destVM[2] = {VMID_HLOS, vmid};
|
||||
int destVMperm[2] = {PERM_READ | PERM_WRITE,
|
||||
PERM_READ | PERM_WRITE };
|
||||
PERM_READ | PERM_WRITE | PERM_EXEC};
|
||||
|
||||
VERIFY(err, !hyp_assign_phys(map->phys,
|
||||
buf_page_size(map->size),
|
||||
|
@ -670,7 +670,7 @@ static int fastrpc_buf_alloc(struct fastrpc_file *fl, ssize_t size,
|
|||
int srcVM[1] = {VMID_HLOS};
|
||||
int destVM[2] = {VMID_HLOS, vmid};
|
||||
int destVMperm[2] = {PERM_READ | PERM_WRITE,
|
||||
PERM_READ | PERM_WRITE};
|
||||
PERM_READ | PERM_WRITE | PERM_EXEC};
|
||||
|
||||
VERIFY(err, !hyp_assign_phys(buf->phys, buf_page_size(size),
|
||||
srcVM, 1, destVM, destVMperm, 2));
|
||||
|
|
Loading…
Add table
Reference in a new issue