aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/include/asm/pgtable.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h
index 4638b4af6750..bd38feb34921 100644
--- a/arch/x86/include/asm/pgtable.h
+++ b/arch/x86/include/asm/pgtable.h
@@ -429,6 +429,16 @@ static inline void __init paravirt_pagetable_setup_done(pgd_t *base)
429} 429}
430#endif /* CONFIG_PARAVIRT */ 430#endif /* CONFIG_PARAVIRT */
431 431
432#endif /* __ASSEMBLY__ */
433
434#ifdef CONFIG_X86_32
435# include "pgtable_32.h"
436#else
437# include "pgtable_64.h"
438#endif
439
440#ifndef __ASSEMBLY__
441
432static inline int pte_none(pte_t pte) 442static inline int pte_none(pte_t pte)
433{ 443{
434 return !pte.pte; 444 return !pte.pte;
@@ -483,12 +493,6 @@ static inline unsigned long pgd_page_vaddr(pgd_t pgd)
483 493
484#endif /* __ASSEMBLY__ */ 494#endif /* __ASSEMBLY__ */
485 495
486#ifdef CONFIG_X86_32
487# include "pgtable_32.h"
488#else
489# include "pgtable_64.h"
490#endif
491
492/* 496/*
493 * the pgd page can be thought of an array like this: pgd_t[PTRS_PER_PGD] 497 * the pgd page can be thought of an array like this: pgd_t[PTRS_PER_PGD]
494 * 498 *