aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/sh/mm/cache.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-11-12 17:03:28 +0900
committerPaul Mundt <lethal@linux-sh.org>2009-11-12 17:03:28 +0900
commit3af539e59cf3213cbe31ce7008f1db51c52665ca (patch)
tree6ae7fa174075b524282b64f315884c69e7ec41a5 /arch/sh/mm/cache.c
parentsh64: Fix up the CONFIG_GENERIC_BUG=n build. (diff)
downloadwireguard-linux-3af539e59cf3213cbe31ce7008f1db51c52665ca.tar.xz
wireguard-linux-3af539e59cf3213cbe31ce7008f1db51c52665ca.zip
sh64: Fix up reworked cache op build.
This gets the build fixed up for the sh64 cache enabled case. Disabling still needs further abstraction for independent I/D-cache disabling. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/mm/cache.c')
-rw-r--r--arch/sh/mm/cache.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/sh/mm/cache.c b/arch/sh/mm/cache.c
index 63c132998f24..e9415d3ea94a 100644
--- a/arch/sh/mm/cache.c
+++ b/arch/sh/mm/cache.c
@@ -277,7 +277,11 @@ static void __init emit_cache_params(void)
void __init cpu_cache_init(void)
{
- unsigned int cache_disabled = !(__raw_readl(CCR) & CCR_CACHE_ENABLE);
+ unsigned int cache_disabled = 0;
+
+#ifdef CCR
+ cache_disabled = !(__raw_readl(CCR) & CCR_CACHE_ENABLE);
+#endif
compute_alias(&boot_cpu_data.icache);
compute_alias(&boot_cpu_data.dcache);