diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:32:43 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:32:43 -0500 |
commit | 38f0f12793a490ac633dbba2418172b7abfa077e (patch) | |
tree | 864c90488c0f5afa49debf7f7ddadf0eacbbc653 /include/asm-x86/page_64.h | |
parent | d6e3cf63e927310f65e21132f1d1c50e3aa4c2b0 (diff) |
x86: page.h: move and unify types for pagetable entry, #5
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_64.h')
-rw-r--r-- | include/asm-x86/page_64.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/include/asm-x86/page_64.h b/include/asm-x86/page_64.h index f5e82c695d26..f8a07bf54c3c 100644 --- a/include/asm-x86/page_64.h +++ b/include/asm-x86/page_64.h | |||
@@ -7,30 +7,9 @@ | |||
7 | extern unsigned long end_pfn; | 7 | extern unsigned long end_pfn; |
8 | extern unsigned long end_pfn_map; | 8 | extern unsigned long end_pfn_map; |
9 | 9 | ||
10 | /* | ||
11 | * These are used to make use of C type-checking.. | ||
12 | */ | ||
13 | typedef struct { unsigned long pmd; } pmd_t; | ||
14 | typedef struct { unsigned long pud; } pud_t; | ||
15 | typedef struct { unsigned long pgd; } pgd_t; | ||
16 | #define PTE_MASK PHYSICAL_PAGE_MASK | ||
17 | |||
18 | typedef struct { unsigned long pgprot; } pgprot_t; | ||
19 | 10 | ||
20 | extern unsigned long phys_base; | 11 | extern unsigned long phys_base; |
21 | 12 | ||
22 | #define pte_val(x) ((x).pte) | ||
23 | #define pmd_val(x) ((x).pmd) | ||
24 | #define pud_val(x) ((x).pud) | ||
25 | #define pgd_val(x) ((x).pgd) | ||
26 | #define pgprot_val(x) ((x).pgprot) | ||
27 | |||
28 | #define __pte(x) ((pte_t) { (x) } ) | ||
29 | #define __pmd(x) ((pmd_t) { (x) } ) | ||
30 | #define __pud(x) ((pud_t) { (x) } ) | ||
31 | #define __pgd(x) ((pgd_t) { (x) } ) | ||
32 | #define __pgprot(x) ((pgprot_t) { (x) } ) | ||
33 | |||
34 | #endif /* !__ASSEMBLY__ */ | 13 | #endif /* !__ASSEMBLY__ */ |
35 | 14 | ||
36 | #ifndef __ASSEMBLY__ | 15 | #ifndef __ASSEMBLY__ |