]> err.no Git - linux-2.6/commitdiff
x86: page.h: move and unify types for pagetable entry, #3
authorIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:32:42 +0000 (13:32 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:32:42 +0000 (13:32 +0100)
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>
include/asm-x86/page.h
include/asm-x86/page_64.h

index 911d7e0b3cd9c0db77504e9ccc6606bba8da51e7..a522fbada97ea8f61bd6fbddd2f617b53c0d90c0 100644 (file)
 #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 */
index f5e0543b8afa81e8a31d4279260c892e16e5acb6..f5e82c695d26f90e925d848bef9ee25971fb62a9 100644 (file)
@@ -10,7 +10,6 @@ extern unsigned long end_pfn_map;
 /*
  * These are used to make use of C type-checking..
  */
-typedef struct { unsigned long pte; } pte_t;
 typedef struct { unsigned long pmd; } pmd_t;
 typedef struct { unsigned long pud; } pud_t;
 typedef struct { unsigned long pgd; } pgd_t;