summaryrefslogtreecommitdiff
path: root/arch/x86
diff options
context:
space:
mode:
authorRik van Riel <riel@redhat.com>2008-07-24 08:27:07 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-24 21:47:15 +0400
commit7ae8ed5053a39082d224a3f48409e016baca9c16 (patch)
tree1ba7e36001eeb069015944e3829a06cacef6cbe1 /arch/x86
parent28b2ee20c7cba812b6f2ccf6d722cf86d00a84dc (diff)
downloadlinux-7ae8ed5053a39082d224a3f48409e016baca9c16.tar.xz
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. [akpm@linux-foundation.org: repair all the architectures which broke] Signed-off-by: Rik van Riel <riel@redhat.com> Cc: Benjamin Herrensmidt <benh@kernel.crashing.org> Cc: Dave Airlie <airlied@linux.ie> Cc: Hugh Dickins <hugh@veritas.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/pci/i386.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/pci/i386.c b/arch/x86/pci/i386.c
index 2aafb67dc5f1..a09505806b82 100644
--- a/arch/x86/pci/i386.c
+++ b/arch/x86/pci/i386.c
@@ -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,