Commit 3af539e5 authored by Paul Mundt's avatar Paul Mundt

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: default avatarPaul Mundt <lethal@linux-sh.org>
parent 626ac8e1
...@@ -563,7 +563,7 @@ static void sh5_flush_cache_page(void *args) ...@@ -563,7 +563,7 @@ static void sh5_flush_cache_page(void *args)
static void sh5_flush_dcache_page(void *page) static void sh5_flush_dcache_page(void *page)
{ {
sh64_dcache_purge_phy_page(page_to_phys(page)); sh64_dcache_purge_phy_page(page_to_phys((struct page *)page));
wmb(); wmb();
} }
......
...@@ -277,7 +277,11 @@ static void __init emit_cache_params(void) ...@@ -277,7 +277,11 @@ static void __init emit_cache_params(void)
void __init cpu_cache_init(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.icache);
compute_alias(&boot_cpu_data.dcache); compute_alias(&boot_cpu_data.dcache);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment