aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/head_64.S
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2007-11-21 01:34:33 -0500
committerPaul Mundt <lethal@linux-sh.org>2008-01-27 23:18:51 -0500
commit36763b22bee56713057762bb0756e8075b5bb918 (patch)
tree102bf357b56efd2299991b22a13c54467491ff7a /arch/sh/kernel/head_64.S
parent6deb6f9129591a2386f5c125d54a22ab78fc8b61 (diff)
sh: Switch SH-5 to use CONFIG_PAGE_OFFSET.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/head_64.S')
-rw-r--r--arch/sh/kernel/head_64.S8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/sh/kernel/head_64.S b/arch/sh/kernel/head_64.S
index 55ae281893f8..c969db592bef 100644
--- a/arch/sh/kernel/head_64.S
+++ b/arch/sh/kernel/head_64.S
@@ -38,9 +38,9 @@
38#define MMUDR_END DTLB_LAST_VAR_UNRESTRICTED+TLB_STEP 38#define MMUDR_END DTLB_LAST_VAR_UNRESTRICTED+TLB_STEP
39#define MMUDR_STEP TLB_STEP 39#define MMUDR_STEP TLB_STEP
40 40
41/* Safety check : CONFIG_CACHED_MEMORY_OFFSET has to be a multiple of 512Mb */ 41/* Safety check : CONFIG_PAGE_OFFSET has to be a multiple of 512Mb */
42#if (CONFIG_CACHED_MEMORY_OFFSET & ((1UL<<29)-1)) 42#if (CONFIG_PAGE_OFFSET & ((1UL<<29)-1))
43#error "CONFIG_CACHED_MEMORY_OFFSET must be a multiple of 512Mb" 43#error "CONFIG_PAGE_OFFSET must be a multiple of 512Mb"
44#endif 44#endif
45 45
46/* 46/*
@@ -49,7 +49,7 @@
49/* Deal safely with the case where the base of RAM is not 512Mb aligned */ 49/* Deal safely with the case where the base of RAM is not 512Mb aligned */
50 50
51#define ALIGN_512M_MASK (0xffffffffe0000000) 51#define ALIGN_512M_MASK (0xffffffffe0000000)
52#define ALIGNED_EFFECTIVE ((CONFIG_CACHED_MEMORY_OFFSET + CONFIG_MEMORY_START) & ALIGN_512M_MASK) 52#define ALIGNED_EFFECTIVE ((CONFIG_PAGE_OFFSET + CONFIG_MEMORY_START) & ALIGN_512M_MASK)
53#define ALIGNED_PHYSICAL (CONFIG_MEMORY_START & ALIGN_512M_MASK) 53#define ALIGNED_PHYSICAL (CONFIG_MEMORY_START & ALIGN_512M_MASK)
54 54
55#define MMUIR_TEXT_H (0x0000000000000003 | ALIGNED_EFFECTIVE) 55#define MMUIR_TEXT_H (0x0000000000000003 | ALIGNED_EFFECTIVE)