From 7762091fcb91710615f20229d43fc7fc7246ccdb Mon Sep 17 00:00:00 2001 From: David Hendricks Date: Thu, 28 Mar 2013 18:37:29 -0700 Subject: armv7: set cache level explicitly for dcache/unified cache case This adds a missing CSSELR write in the case of a dcache or unified cache being invalidated by armv7_invalidate_caches(), ensuring that all levels of dcache/unified cache are invalidated as expected when the function is called. Change-Id: Ie90184bf8a8181afa3afe0786897455b30b7f022 Signed-off-by: David Hendricks Reviewed-on: http://review.coreboot.org/2947 Reviewed-by: Ronald G. Minnich Tested-by: build bot (Jenkins) --- src/arch/armv7/lib/cache.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/arch/armv7/lib/cache.c b/src/arch/armv7/lib/cache.c index da03a81fd8..d65e021623 100644 --- a/src/arch/armv7/lib/cache.c +++ b/src/arch/armv7/lib/cache.c @@ -310,6 +310,8 @@ void armv7_invalidate_caches(void) case 0x2: case 0x4: /* dcache only or unified cache */ + csselr = level << 1; + write_csselr(csselr); dcache_invalidate_all(); break; case 0x3: -- cgit v1.2.3