summaryrefslogtreecommitdiff
path: root/linux/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/vm.c')
-rw-r--r--linux/vm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/vm.c b/linux/vm.c
index d295529b..907c44cf 100644
--- a/linux/vm.c
+++ b/linux/vm.c
@@ -323,6 +323,8 @@ int drm_mmap(struct file *filp, struct vm_area_struct *vma)
pgprot_val(vma->vm_page_prot) |= _PAGE_PCD;
pgprot_val(vma->vm_page_prot) &= ~_PAGE_PWT;
}
+#elif defined(__powerpc__)
+ pgprot_val(vma->vm_page_prot) |= _PAGE_NO_CACHE|_PAGE_GUARDED;
#endif
vma->vm_flags |= VM_IO; /* not in core dump */
}