git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
e2dc9d5
)
mm: allow remote_vm access to non-io pfnmap memory
author
Grazvydas Ignotas
<notasas@gmail.com>
Sat, 7 Feb 2015 19:22:28 +0000
(21:22 +0200)
committer
Grazvydas Ignotas
<notasas@gmail.com>
Fri, 20 Feb 2015 22:05:27 +0000
(
00:05
+0200)
this allows gdb to see the framebuffer and DSP shared memory
mm/memory.c
patch
|
blob
|
history
diff --git
a/mm/memory.c
b/mm/memory.c
index
e138bf4
..
b9a95f1
100644
(file)
--- a/
mm/memory.c
+++ b/
mm/memory.c
@@
-3875,7
+3875,11
@@
static int __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm,
vma = find_vma(mm, addr);
if (!vma || vma->vm_start > addr)
break;
- if (vma->vm_ops && vma->vm_ops->access)
+ if ((vma->vm_flags & VM_PFNMAP) &&
+ !(vma->vm_flags & VM_IO))
+ ret = generic_access_phys(vma, addr, buf,
+ len, write);
+ if (ret <= 0 && vma->vm_ops && vma->vm_ops->access)
ret = vma->vm_ops->access(vma, addr, buf,
len, write);
if (ret <= 0)