summaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/machvec.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-11-12 08:36:26 +0100
committerPaul Mundt <lethal@linux-sh.org>2009-11-12 08:36:26 +0100
commite9c58fc57b17bfa75c256fb4f45ce22de6626858 (patch)
tree0617f394e34af76156a8b1c10435b6cb5753c8fe /arch/sh/kernel/machvec.c
parentsh: Fix up the CONFIG_PERF_EVENTS=n build for SH-4. (diff)
downloadlinux-e9c58fc57b17bfa75c256fb4f45ce22de6626858.tar.xz
linux-e9c58fc57b17bfa75c256fb4f45ce22de6626858.zip
sh: Use the generic I/O port base for slowdown.
This fixes up the build and behaviour for various configurations. Namely the CONFIG_32BIT cases where legacy mappings do not exist, as well as the sh64 build. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel/machvec.c')
-rw-r--r--arch/sh/kernel/machvec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sh/kernel/machvec.c b/arch/sh/kernel/machvec.c
index cbce639b108a..1652340ba3f2 100644
--- a/arch/sh/kernel/machvec.c
+++ b/arch/sh/kernel/machvec.c
@@ -135,5 +135,9 @@ void __init sh_mv_setup(void)
if (!sh_mv.mv_nr_irqs)
sh_mv.mv_nr_irqs = NR_IRQS;
+#ifdef P2SEG
__set_io_port_base(P2SEG);
+#else
+ __set_io_port_base(0);
+#endif
}