From 1c12647ace12b226d61f617c774bd52065b996a0 Mon Sep 17 00:00:00 2001 From: Kuninori Morimoto Date: Tue, 2 Jun 2009 02:49:20 +0000 Subject: [PATCH] --- yaml --- r: 146858 b: refs/heads/master c: fab88d9fe98e9091aafeb9789fbf2e04fdace8ed h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/sh/kernel/cpu/init.c | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index bebebffe67a2..a85a2807cefb 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d974ac24b762296eeaebb23e5eff8ed15ce44529 +refs/heads/master: fab88d9fe98e9091aafeb9789fbf2e04fdace8ed diff --git a/trunk/arch/sh/kernel/cpu/init.c b/trunk/arch/sh/kernel/cpu/init.c index d29e69c156f0..ad85421099cd 100644 --- a/trunk/arch/sh/kernel/cpu/init.c +++ b/trunk/arch/sh/kernel/cpu/init.c @@ -62,6 +62,11 @@ static void __init speculative_execution_init(void) #define speculative_execution_init() do { } while (0) #endif +/* 2nd-level cache init */ +void __uses_jump_to_uncached __attribute__ ((weak)) l2_cache_init(void) +{ +} + /* * Generic first-level cache init */ @@ -146,6 +151,8 @@ static void __uses_jump_to_uncached cache_init(void) flags &= ~CCR_CACHE_ENABLE; #endif + l2_cache_init(); + ctrl_outl(flags, CCR); back_to_cached(); }