aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-03-19 15:30:40 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-24 17:57:30 -0400
commit1ec1fe73dfb711f9ea5a0ef8a7e3af5b6ac8b653 (patch)
tree8bd9c69ef81e161feae599580bbab84b58f11761 /include/asm-x86
parent4f76cd382213b29dd3658e3e1ea47c0c2be06f3c (diff)
x86: xen unify x86 add common mm pgtable c fix
Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86')
-rw-r--r--include/asm-x86/pgalloc_32.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/include/asm-x86/pgalloc_32.h b/include/asm-x86/pgalloc_32.h
index d60edb14f85e..aaa322cb4b6e 100644
--- a/include/asm-x86/pgalloc_32.h
+++ b/include/asm-x86/pgalloc_32.h
@@ -62,23 +62,8 @@ static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd)
62 62
63extern void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd); 63extern void __pmd_free_tlb(struct mmu_gather *tlb, pmd_t *pmd);
64 64
65static inline void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd) 65extern void pud_populate(struct mm_struct *mm, pud_t *pudp, pmd_t *pmd);
66{
67 paravirt_alloc_pd(mm, __pa(pmd) >> PAGE_SHIFT);
68
69 /* Note: almost everything apart from _PAGE_PRESENT is
70 reserved at the pmd (PDPT) level. */
71 set_pud(pudp, __pud(__pa(pmd) | _PAGE_PRESENT));
72 66
73 /*
74 * According to Intel App note "TLBs, Paging-Structure Caches,
75 * and Their Invalidation", April 2007, document 317080-001,
76 * section 8.1: in PAE mode we explicitly have to flush the
77 * TLB via cr3 if the top-level pgd is changed...
78 */
79 if (mm == current->active_mm)
80 write_cr3(read_cr3());
81}
82#endif /* CONFIG_X86_PAE */ 67#endif /* CONFIG_X86_PAE */
83 68
84#endif /* _I386_PGALLOC_H */ 69#endif /* _I386_PGALLOC_H */