[patch 3/5] use generic_access_phys for pci mmap on x86

From: Rik van Riel
Date: Thu May 15 2008 - 13:57:19 EST


Use generic_access_phys for ptrace and /proc/pid/mem access to
PCI device memory on x86. This makes it possible to debug the
X server.

Signed-off-by: Rik van Riel <riel@xxxxxxxxxx>

Index: ptrace-2.6.26-rc2-mm1/arch/x86/pci/i386.c
===================================================================
--- ptrace-2.6.26-rc2-mm1.orig/arch/x86/pci/i386.c 2008-05-15 12:46:41.000000000 -0400
+++ ptrace-2.6.26-rc2-mm1/arch/x86/pci/i386.c 2008-05-15 13:34:36.000000000 -0400
@@ -280,6 +280,7 @@ static void pci_track_mmap_page_range(st
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,

--
All Rights Reversed

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/