Commit f4d152dd authored by Suman Anna's avatar Suman Anna Committed by Hari Kanigeri

SYSLINK: proc4430 - store physical address into user virtual address

The physical address of a memory entry is stored into the user
virtual address entry in proc4430_attach so that the user-side
can remap using this address in ProcMgrDrv_Open. The current mapping
uses the Slave address and assumes that the Slave address is same as
the physical address.
Signed-off-by: default avatarSuman Anna <s-anna@ti.com>
parent 3b7877fc
...@@ -393,7 +393,12 @@ int proc4430_attach(void *handle, struct processor_attach_params *params) ...@@ -393,7 +393,12 @@ int proc4430_attach(void *handle, struct processor_attach_params *params)
params->mem_entries[i].addr params->mem_entries[i].addr
[PROC_MGR_ADDRTYPE_SLAVEVIRT] = [PROC_MGR_ADDRTYPE_SLAVEVIRT] =
(object->params.mem_entries[i].slave_virt_addr); (object->params.mem_entries[i].slave_virt_addr);
/* User virtual will be filled by user side. */ /* User virtual will be filled by user side. For now,
fill in the physical address so that it can be used
by mmap to remap this region into user-space */
params->mem_entries[i].addr
[PROC_MGR_ADDRTYPE_MASTERUSRVIRT] = \
object->params.mem_entries[i].phys_addr;
params->mem_entries[i].size = params->mem_entries[i].size =
object->params.mem_entries[i].size; object->params.mem_entries[i].size;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment