Commit bfc0fb61 authored by Arun Radhakrishnan's avatar Arun Radhakrishnan Committed by Hari Kanigeri

PROCMGR: updated with couple of changes for procmgr unmap Updated the...

PROCMGR: updated with couple of changes for procmgr unmap Updated the ducatienabler.c file to get the procmgr Ummap function working. also updated the procmgr_drv.c file with a minor update
Signed-off-by: default avatarArun Radhakrishnan <x0051460@ti.com>
parent 69a9de68
......@@ -431,7 +431,7 @@ int ducati_mem_unmap(u32 da, u32 num_bytes)
* Get the L2 PA from the L1 PTE, and find
* corresponding L2 VA
*/
L2_base_pa = hw_mmu_pte_sizel1(pte_val);
L2_base_pa = hw_mmu_pte_coarsel1(pte_val);
L2_base_va = L2_base_pa - p_pt_attrs->l2_base_pa
+ p_pt_attrs->l2_base_va;
L2_page_num = (L2_base_pa - p_pt_attrs->l2_base_pa) /
......
......@@ -520,7 +520,7 @@ static int proc_mgr_drv_ioctl(struct inode *inode, struct file *filp,
retval = copy_from_user((void *)&src_args,
(const void *)(args),
sizeof(struct proc_mgr_cmd_args_unmap));
if (WARN_ON(retval < 0))
if (WARN_ON(retval != 0))
goto func_exit;
retval = proc_mgr_unmap(src_args.handle,
(src_args.mapped_addr));
......
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