diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:32:42 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:32:42 -0500 |
commit | ba2b6c525eec459e1c6397f0f3eaeeafad153eab (patch) | |
tree | ca4aa8d23d46009a59b074a3cf1389543f9383a7 /include/asm-x86/page.h | |
parent | 7a2389b457a03f226b441b5c53f9808d4eefdcea (diff) |
x86: page.h: move and unify types for pagetable entry, #3
based on:
Subject: x86: page.h: move and unify types for pagetable entry
From: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/asm-x86/page.h')
-rw-r--r-- | include/asm-x86/page.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-x86/page.h b/include/asm-x86/page.h index 911d7e0b3cd..a522fbada97 100644 --- a/include/asm-x86/page.h +++ b/include/asm-x86/page.h | |||
@@ -79,6 +79,19 @@ | |||
79 | #ifndef __ASSEMBLY__ | 79 | #ifndef __ASSEMBLY__ |
80 | void clear_page(void *page); | 80 | void clear_page(void *page); |
81 | void copy_page(void *to, void *from); | 81 | void copy_page(void *to, void *from); |
82 | |||
83 | /* | ||
84 | * These are used to make use of C type-checking.. | ||
85 | */ | ||
86 | typedef unsigned long pteval_t; | ||
87 | typedef unsigned long pmdval_t; | ||
88 | typedef unsigned long pudval_t; | ||
89 | typedef unsigned long pgdval_t; | ||
90 | typedef unsigned long pgprotval_t; | ||
91 | typedef unsigned long phys_addr_t; | ||
92 | |||
93 | typedef struct { pteval_t pte; } pte_t; | ||
94 | |||
82 | #endif /* !__ASSEMBLY__ */ | 95 | #endif /* !__ASSEMBLY__ */ |
83 | 96 | ||
84 | #endif /* CONFIG_X86_64 */ | 97 | #endif /* CONFIG_X86_64 */ |