aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/page.h
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2009-02-09 02:42:01 -0500
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2009-02-11 17:54:10 -0500
commite42778de31d78ae262a3b901264eabefb9c3b51b (patch)
tree737f6261ab74666bba4fa92f87a133704eee39b8 /arch/x86/include/asm/page.h
parent1dfc07aad5479f1fb832ff6f61a5a9ce822d9e1f (diff)
x86: move defs around to allow paravirt.h to just include page_types.h
Signed-off-by: Jeremy Fitzhardinge <jeremy@goop.org>
Diffstat (limited to 'arch/x86/include/asm/page.h')
-rw-r--r--arch/x86/include/asm/page.h78
1 files changed, 0 insertions, 78 deletions
diff --git a/arch/x86/include/asm/page.h b/arch/x86/include/asm/page.h
index da54f6c48a7f..28423609b00e 100644
--- a/arch/x86/include/asm/page.h
+++ b/arch/x86/include/asm/page.h
@@ -31,84 +31,6 @@ static inline void copy_user_page(void *to, void *from, unsigned long vaddr,
31 alloc_page_vma(GFP_HIGHUSER | __GFP_ZERO | movableflags, vma, vaddr) 31 alloc_page_vma(GFP_HIGHUSER | __GFP_ZERO | movableflags, vma, vaddr)
32#define __HAVE_ARCH_ALLOC_ZEROED_USER_HIGHPAGE 32#define __HAVE_ARCH_ALLOC_ZEROED_USER_HIGHPAGE
33 33
34static inline pgd_t native_make_pgd(pgdval_t val)
35{
36 return (pgd_t) { val };
37}
38
39static inline pgdval_t native_pgd_val(pgd_t pgd)
40{
41 return pgd.pgd;
42}
43
44static inline pgdval_t pgd_flags(pgd_t pgd)
45{
46 return native_pgd_val(pgd) & PTE_FLAGS_MASK;
47}
48
49#if PAGETABLE_LEVELS >= 3
50#if PAGETABLE_LEVELS == 4
51static inline pud_t native_make_pud(pmdval_t val)
52{
53 return (pud_t) { val };
54}
55
56static inline pudval_t native_pud_val(pud_t pud)
57{
58 return pud.pud;
59}
60#else /* PAGETABLE_LEVELS == 3 */
61static inline pudval_t native_pud_val(pud_t pud)
62{
63 return native_pgd_val(pud.pgd);
64}
65#endif /* PAGETABLE_LEVELS == 4 */
66
67static inline pudval_t pud_flags(pud_t pud)
68{
69 return native_pud_val(pud) & PTE_FLAGS_MASK;
70}
71
72static inline pmd_t native_make_pmd(pmdval_t val)
73{
74 return (pmd_t) { val };
75}
76
77static inline pmdval_t native_pmd_val(pmd_t pmd)
78{
79 return pmd.pmd;
80}
81
82#else /* PAGETABLE_LEVELS == 2 */
83static inline pmdval_t native_pmd_val(pmd_t pmd)
84{
85 return native_pgd_val(pmd.pud.pgd);
86}
87#endif /* PAGETABLE_LEVELS >= 3 */
88
89static inline pmdval_t pmd_flags(pmd_t pmd)
90{
91 return native_pmd_val(pmd) & PTE_FLAGS_MASK;
92}
93
94static inline pte_t native_make_pte(pteval_t val)
95{
96 return (pte_t) { .pte = val };
97}
98
99static inline pteval_t native_pte_val(pte_t pte)
100{
101 return pte.pte;
102}
103
104static inline pteval_t pte_flags(pte_t pte)
105{
106 return native_pte_val(pte) & PTE_FLAGS_MASK;
107}
108
109#define pgprot_val(x) ((x).pgprot)
110#define __pgprot(x) ((pgprot_t) { (x) } )
111
112#ifdef CONFIG_PARAVIRT 34#ifdef CONFIG_PARAVIRT
113#include <asm/paravirt.h> 35#include <asm/paravirt.h>
114#else /* !CONFIG_PARAVIRT */ 36#else /* !CONFIG_PARAVIRT */