Module Name: src Committed By: matt Date: Mon Dec 1 22:39:06 UTC 2014
Modified Files: src/sys/arch/arm/cortex: pl310.c Log Message: clean the a9 l2 cache before turning it on. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/arch/arm/cortex/pl310.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/arm/cortex/pl310.c diff -u src/sys/arch/arm/cortex/pl310.c:1.15 src/sys/arch/arm/cortex/pl310.c:1.16 --- src/sys/arch/arm/cortex/pl310.c:1.15 Wed Apr 16 22:40:00 2014 +++ src/sys/arch/arm/cortex/pl310.c Mon Dec 1 22:39:06 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: pl310.c,v 1.15 2014/04/16 22:40:00 matt Exp $ */ +/* $NetBSD: pl310.c,v 1.16 2014/12/01 22:39:06 matt Exp $ */ /*- * Copyright (c) 2012 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: pl310.c,v 1.15 2014/04/16 22:40:00 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: pl310.c,v 1.16 2014/12/01 22:39:06 matt Exp $"); #include <sys/param.h> #include <sys/bus.h> @@ -249,11 +249,11 @@ arml2cc_enable(struct arml2cc_softc *sc) { mutex_spin_enter(&sc->sc_lock); - arml2cc_write_4(sc, L2C_CTL, 1); // turn it on - arml2cc_cache_way_op(sc, L2C_INV_WAY, sc->sc_waymask); arml2cc_cache_sync(sc); + arml2cc_write_4(sc, L2C_CTL, 1); // turn it on + mutex_spin_exit(&sc->sc_lock); }