diff options
-rw-r--r-- | include/asm-x86/page.h | 13 | ||||
-rw-r--r-- | include/asm-x86/page_64.h | 1 |
2 files changed, 13 insertions, 1 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 */ |
diff --git a/include/asm-x86/page_64.h b/include/asm-x86/page_64.h index f5e0543b8af..f5e82c695d2 100644 --- a/include/asm-x86/page_64.h +++ b/include/asm-x86/page_64.h | |||
@@ -10,7 +10,6 @@ extern unsigned long end_pfn_map; | |||
10 | /* | 10 | /* |
11 | * These are used to make use of C type-checking.. | 11 | * These are used to make use of C type-checking.. |
12 | */ | 12 | */ |
13 | typedef struct { unsigned long pte; } pte_t; | ||
14 | typedef struct { unsigned long pmd; } pmd_t; | 13 | typedef struct { unsigned long pmd; } pmd_t; |
15 | typedef struct { unsigned long pud; } pud_t; | 14 | typedef struct { unsigned long pud; } pud_t; |
16 | typedef struct { unsigned long pgd; } pgd_t; | 15 | typedef struct { unsigned long pgd; } pgd_t; |