From ba2b6c525eec459e1c6397f0f3eaeeafad153eab Mon Sep 17 00:00:00 2001 From: Ingo Molnar Date: Wed, 30 Jan 2008 13:32:42 +0100 Subject: 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 Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- include/asm-x86/page.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'include/asm-x86/page.h') diff --git a/include/asm-x86/page.h b/include/asm-x86/page.h index 911d7e0b3cd9..a522fbada97e 100644 --- a/include/asm-x86/page.h +++ b/include/asm-x86/page.h @@ -79,6 +79,19 @@ #ifndef __ASSEMBLY__ void clear_page(void *page); void copy_page(void *to, void *from); + +/* + * These are used to make use of C type-checking.. + */ +typedef unsigned long pteval_t; +typedef unsigned long pmdval_t; +typedef unsigned long pudval_t; +typedef unsigned long pgdval_t; +typedef unsigned long pgprotval_t; +typedef unsigned long phys_addr_t; + +typedef struct { pteval_t pte; } pte_t; + #endif /* !__ASSEMBLY__ */ #endif /* CONFIG_X86_64 */ -- cgit v1.2.3