summaryrefslogtreecommitdiffstats
path: root/include/asm-sh/fixmap.h
diff options
context:
space:
mode:
authorPaul Mundt2007-11-08 10:55:39 +0100
committerPaul Mundt2008-01-28 05:18:39 +0100
commit5a4a5bd127c147aaa16aefef856f4cb28e92cec1 (patch)
tree0e555c2ec105f678b68df5fb5f23bae7fe744a9c /include/asm-sh/fixmap.h
parentsh: Add SH-5 support to asm/module.h. (diff)
downloadkernel-qcow2-linux-5a4a5bd127c147aaa16aefef856f4cb28e92cec1.tar.gz
kernel-qcow2-linux-5a4a5bd127c147aaa16aefef856f4cb28e92cec1.tar.xz
kernel-qcow2-linux-5a4a5bd127c147aaa16aefef856f4cb28e92cec1.zip
sh: Fix up fixmap location for SH-5.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'include/asm-sh/fixmap.h')
-rw-r--r--include/asm-sh/fixmap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asm-sh/fixmap.h b/include/asm-sh/fixmap.h
index 8a566177ad96..09463cd9bbb9 100644
--- a/include/asm-sh/fixmap.h
+++ b/include/asm-sh/fixmap.h
@@ -73,7 +73,11 @@ extern void __set_fixmap(enum fixed_addresses idx,
* the start of the fixmap, and leave one page empty
* at the top of mem..
*/
+#ifdef CONFIG_SUPERH32
#define FIXADDR_TOP (P4SEG - PAGE_SIZE)
+#else
+#define FIXADDR_TOP (0xff000000 - PAGE_SIZE)
+#endif
#define FIXADDR_SIZE (__end_of_fixed_addresses << PAGE_SHIFT)
#define FIXADDR_START (FIXADDR_TOP - FIXADDR_SIZE)