diff options
author | Stuart Menefy <stuart.menefy@st.com> | 2007-11-30 03:52:53 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-01-27 23:18:59 -0500 |
commit | d02b08f6e8b184ffef349e395210a5e82ff4f4bc (patch) | |
tree | 1dbec9fe6d2315a95855ce5a91f92a2a1fbf5a22 /include/asm-sh/pgtable.h | |
parent | cbaa118ecfd99fc5ed7adbd9c34a30e1c05e3c93 (diff) |
sh: Clean up places that make 29-bit physical assumptions.
Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/pgtable.h')
-rw-r--r-- | include/asm-sh/pgtable.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/asm-sh/pgtable.h b/include/asm-sh/pgtable.h index b4d7561cd9e0..3df90f003e95 100644 --- a/include/asm-sh/pgtable.h +++ b/include/asm-sh/pgtable.h | |||
@@ -69,7 +69,13 @@ extern unsigned long empty_zero_page[PAGE_SIZE / sizeof(unsigned long)]; | |||
69 | #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE) | 69 | #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE) |
70 | #define FIRST_USER_ADDRESS 0 | 70 | #define FIRST_USER_ADDRESS 0 |
71 | 71 | ||
72 | #define PTE_PHYS_MASK (0x20000000 - PAGE_SIZE) | 72 | #ifdef CONFIG_32BIT |
73 | #define PHYS_ADDR_MASK 0xffffffff | ||
74 | #else | ||
75 | #define PHYS_ADDR_MASK 0x1fffffff | ||
76 | #endif | ||
77 | |||
78 | #define PTE_PHYS_MASK (PHYS_ADDR_MASK & PAGE_MASK) | ||
73 | 79 | ||
74 | #ifdef CONFIG_SUPERH32 | 80 | #ifdef CONFIG_SUPERH32 |
75 | #define VMALLOC_START (P3SEG) | 81 | #define VMALLOC_START (P3SEG) |