Skip to content

Commit

Permalink
x86: page.h: move and unify types for pagetable entry, #3
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ingo Molnar committed Jan 30, 2008
1 parent 7a2389b commit ba2b6c5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 13 additions & 0 deletions include/asm-x86/page.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
1 change: 0 additions & 1 deletion include/asm-x86/page_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ba2b6c5

Please sign in to comment.