linux gntdev: Mark x86-specific code as such with ifdef.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
Keir Fraser committed 2007-03-31 16:39:14 +01:00
1 parent 2746bed0cd
commit c15c303a40
1 file changed
+2
@@ -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) {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.