aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-03-31 16:39:14 +0100
committerKeir Fraser <keir@xensource.com>2007-03-31 16:39:14 +0100
commitc15c303a405f2e2453ecdf81908f962a7769d924 (patch)
tree275ddbc6d6b9b33b6094d0cc75d308e6366b1c9a
parent2746bed0cd7f4091b1a2a706765c64f849f77d1c (diff)
downloadxen-c15c303a405f2e2453ecdf81908f962a7769d924.tar.gz
xen-c15c303a405f2e2453ecdf81908f962a7769d924.tar.bz2
xen-c15c303a405f2e2453ecdf81908f962a7769d924.zip
linux gntdev: Mark x86-specific code as such with ifdef.
Signed-off-by: Keir Fraser <keir@xensource.com>
-rw-r--r--linux-2.6-xen-sparse/drivers/xen/gntdev/gntdev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-2.6-xen-sparse/drivers/xen/gntdev/gntdev.c b/linux-2.6-xen-sparse/drivers/xen/gntdev/gntdev.c
index fe1e98b2f1..8716e8aa55 100644
--- a/linux-2.6-xen-sparse/drivers/xen/gntdev/gntdev.c
+++ b/linux-2.6-xen-sparse/drivers/xen/gntdev/gntdev.c
@@ -518,12 +518,14 @@ static int gntdev_mmap (struct file *flip, struct vm_area_struct *vma)
*/
vma->vm_flags |= VM_DONTCOPY;
+#ifdef CONFIG_X86
/* This flag ensures that the page tables are not unpinned before the
* VM area is unmapped. Therefore Xen still recognises the PTE as
* belonging to an L1 pagetable, and the grant unmap operation will
* succeed, even if the process does not exit cleanly.
*/
vma->vm_mm->context.has_foreign_mappings = 1;
+#endif
for (i = 0; i < size; ++i) {