diff options
author | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 04:19:13 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2006-09-27 04:19:13 -0400 |
commit | e7f93a355c7e32c26eab8910cf53b7506bb046c5 (patch) | |
tree | 0f4f2e60423a2c4c70134e6734b57b97e277af65 /include/asm-sh/page.h | |
parent | adf1890b0cd63f754b2171b73e4d845c0950d407 (diff) |
sh: Make PAGE_OFFSET configurable.
nommu needs to be able to shift PAGE_OFFSET, so we switch it to a
non-user-visible CONFIG_PAGE_OFFSET and use that in the few places
where it matters.
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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-sh/page.h b/include/asm-sh/page.h index 51d7281a546a..1b3cfd165a66 100644 --- a/include/asm-sh/page.h +++ b/include/asm-sh/page.h | |||
@@ -84,7 +84,7 @@ typedef struct { unsigned long pgprot; } pgprot_t; | |||
84 | #define __MEMORY_START CONFIG_MEMORY_START | 84 | #define __MEMORY_START CONFIG_MEMORY_START |
85 | #define __MEMORY_SIZE CONFIG_MEMORY_SIZE | 85 | #define __MEMORY_SIZE CONFIG_MEMORY_SIZE |
86 | 86 | ||
87 | #define PAGE_OFFSET (0x80000000UL) | 87 | #define PAGE_OFFSET CONFIG_PAGE_OFFSET |
88 | #define __pa(x) ((unsigned long)(x)-PAGE_OFFSET) | 88 | #define __pa(x) ((unsigned long)(x)-PAGE_OFFSET) |
89 | #define __va(x) ((void *)((unsigned long)(x)+PAGE_OFFSET)) | 89 | #define __va(x) ((void *)((unsigned long)(x)+PAGE_OFFSET)) |
90 | 90 | ||