linux: vmalloc_sync_all() is not a no-op when running in PAE mode on Xen.

Also vmalloc_sync_all() is only defined for x86 architectures so make
use of it in driver code conditional on CONFIG_X86.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
Keir Fraser committed 2007-02-17 13:26:33 +00:00
1 parent 0d1df40b65
commit bbf3a3eebd
3 files changed
+4 -2

No files matched your search

@@ -731,7 +731,7 @@ do_sigbus:
force_sig_info_fault(SIGBUS, BUS_ADRERR, address, tsk);
}
#ifndef CONFIG_X86_PAE
#if !HAVE_SHARED_KERNEL_PMD
void vmalloc_sync_all(void)
{
/*
+2
View File
@@ -31,7 +31,9 @@ struct vm_struct *alloc_vm_area(unsigned long size)
}
/* Map page directories into every address space. */
#ifdef CONFIG_X86
vmalloc_sync_all();
#endif
return area;
}
@@ -180,6 +180,6 @@ static inline pmd_t pfn_pmd(unsigned long page_nr, pgprot_t pgprot)
#define __pmd_free_tlb(tlb, x) do { } while (0)
#define vmalloc_sync_all() ((void)0)
void vmalloc_sync_all(void);
#endif /* _I386_PGTABLE_3LEVEL_H */
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.