Commit 7ae8ed50 authored by Rik van Riel's avatar Rik van Riel Committed by Linus Torvalds

use generic_access_phys for /dev/mem mappings

Use generic_access_phys as the access_process_vm access function for
/dev/mem mappings.  This makes it possible to debug the X server.

[ repair all the architectures which broke]
Signed-off-by: default avatarRik van Riel <>
Cc: Benjamin Herrensmidt <>
Cc: Dave Airlie <>
Cc: Hugh Dickins <>
Cc: Paul Mackerras <>
Cc: Arnd Bergmann <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 28b2ee20
......@@ -280,6 +280,7 @@ static void pci_track_mmap_page_range(struct vm_area_struct *vma)
static struct vm_operations_struct pci_mmap_ops = {
.open = pci_track_mmap_page_range,
.close = pci_unmap_page_range,
.access = generic_access_phys,
int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
......@@ -327,7 +327,10 @@ static void mmap_mem_close(struct vm_area_struct *vma)
static struct vm_operations_struct mmap_mem_ops = {
.open = mmap_mem_open,
.close = mmap_mem_close
.close = mmap_mem_close,
.access = generic_access_phys
static int mmap_mem(struct file * file, struct vm_area_struct * vma)
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