direct-io.hg

changeset 14684:f4c721dae13a

linux gntdev: Mark x86-specific code as such with ifdef.
Signed-off-by: Keir Fraser <keir@xensource.com>
author Keir Fraser <keir@xensource.com>
date Sat Mar 31 16:39:14 2007 +0100 (2007-03-31)
parents 3a0b808d917a
children 2e5b6c02566f
files linux-2.6-xen-sparse/drivers/xen/gntdev/gntdev.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/drivers/xen/gntdev/gntdev.c	Sat Mar 31 16:35:02 2007 +0100
     1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/gntdev/gntdev.c	Sat Mar 31 16:39:14 2007 +0100
     1.3 @@ -518,12 +518,14 @@ static int gntdev_mmap (struct file *fli
     1.4  	 */
     1.5  	vma->vm_flags |= VM_DONTCOPY;
     1.6  
     1.7 +#ifdef CONFIG_X86
     1.8  	/* This flag ensures that the page tables are not unpinned before the
     1.9  	 * VM area is unmapped. Therefore Xen still recognises the PTE as
    1.10  	 * belonging to an L1 pagetable, and the grant unmap operation will
    1.11  	 * succeed, even if the process does not exit cleanly.
    1.12  	 */
    1.13  	vma->vm_mm->context.has_foreign_mappings = 1;
    1.14 +#endif
    1.15  
    1.16  	for (i = 0; i < size; ++i) {
    1.17