Skip to content

Commit

Permalink
x86: include pgtable_SIZE.h earlier
Browse files Browse the repository at this point in the history
We'll need the definitions sooner.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
  • Loading branch information
Jeremy Fitzhardinge committed Feb 6, 2009
1 parent 6fff47e commit aca159d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions arch/x86/include/asm/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,16 @@ static inline void __init paravirt_pagetable_setup_done(pgd_t *base)
}
#endif /* CONFIG_PARAVIRT */

#endif /* __ASSEMBLY__ */

#ifdef CONFIG_X86_32
# include "pgtable_32.h"
#else
# include "pgtable_64.h"
#endif

#ifndef __ASSEMBLY__

static inline int pte_none(pte_t pte)
{
return !pte.pte;
Expand Down Expand Up @@ -483,12 +493,6 @@ static inline unsigned long pgd_page_vaddr(pgd_t pgd)

#endif /* __ASSEMBLY__ */

#ifdef CONFIG_X86_32
# include "pgtable_32.h"
#else
# include "pgtable_64.h"
#endif

/*
* the pgd page can be thought of an array like this: pgd_t[PTRS_PER_PGD]
*
Expand Down

0 comments on commit aca159d

Please sign in to comment.