[coreboot-gerrit] New patch to review for coreboot: c11b51b armv7: set cache level explicitly for dcache/unified cache case

David Hendricks (dhendrix@chromium.org) gerrit at coreboot.org
Fri Mar 29 03:07:27 CET 2013

David Hendricks (dhendrix at chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/2947


commit c11b51b5ef9983d9dac3fe51ed3680f8ee3b0f23
Author: David Hendricks <dhendrix at chromium.org>
Date:   Thu Mar 28 18:37:29 2013 -0700

    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 <dhendrix at chromium.org>
 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 da03a81..d65e021 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);
 		case 0x3:

More information about the coreboot-gerrit mailing list