diff options
author | Paul Mundt <lethal@linux-sh.org> | 2007-11-19 04:26:19 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-01-27 23:18:47 -0500 |
commit | 249cfea914002baac0af4b080306e6b820cd86b2 (patch) | |
tree | 32102587d3cd80986274db5deaee2ab5b7f5adab /include/asm-sh/page.h | |
parent | 2b6a8d455b1368d769da234336314b8364feb781 (diff) |
sh: Split out pgtable.h in to _32 and _64 variants.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/page.h')
-rw-r--r-- | include/asm-sh/page.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/asm-sh/page.h b/include/asm-sh/page.h index d0273dbce6be..93a89841227f 100644 --- a/include/asm-sh/page.h +++ b/include/asm-sh/page.h | |||
@@ -96,12 +96,18 @@ typedef struct { unsigned long long pgd; } pgd_t; | |||
96 | ((x).pte_low | ((unsigned long long)(x).pte_high << 32)) | 96 | ((x).pte_low | ((unsigned long long)(x).pte_high << 32)) |
97 | #define __pte(x) \ | 97 | #define __pte(x) \ |
98 | ({ pte_t __pte = {(x), ((unsigned long long)(x)) >> 32}; __pte; }) | 98 | ({ pte_t __pte = {(x), ((unsigned long long)(x)) >> 32}; __pte; }) |
99 | #else | 99 | #elif defined(CONFIG_SUPERH32) |
100 | typedef struct { unsigned long pte_low; } pte_t; | 100 | typedef struct { unsigned long pte_low; } pte_t; |
101 | typedef struct { unsigned long pgprot; } pgprot_t; | 101 | typedef struct { unsigned long pgprot; } pgprot_t; |
102 | typedef struct { unsigned long pgd; } pgd_t; | 102 | typedef struct { unsigned long pgd; } pgd_t; |
103 | #define pte_val(x) ((x).pte_low) | 103 | #define pte_val(x) ((x).pte_low) |
104 | #define __pte(x) ((pte_t) { (x) } ) | 104 | #define __pte(x) ((pte_t) { (x) } ) |
105 | #else | ||
106 | typedef struct { unsigned long long pte_low; } pte_t; | ||
107 | typedef struct { unsigned long pgprot; } pgprot_t; | ||
108 | typedef struct { unsigned long pgd; } pgd_t; | ||
109 | #define pte_val(x) ((x).pte_low) | ||
110 | #define __pte(x) ((pte_t) { (x) } ) | ||
105 | #endif | 111 | #endif |
106 | 112 | ||
107 | #define pgd_val(x) ((x).pgd) | 113 | #define pgd_val(x) ((x).pgd) |