Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/cortex clean the a9 l2 cache before turning it on.
details: https://anonhg.NetBSD.org/src/rev/577074193323
branches: trunk
changeset: 334683:577074193323
user: matt <matt%NetBSD.org@localhost>
date: Mon Dec 01 22:39:06 2014 +0000
description:
clean the a9 l2 cache before turning it on.
diffstat:
sys/arch/arm/cortex/pl310.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r b9047d81c641 -r 577074193323 sys/arch/arm/cortex/pl310.c
--- a/sys/arch/arm/cortex/pl310.c Mon Dec 01 20:30:27 2014 +0000
+++ b/sys/arch/arm/cortex/pl310.c Mon Dec 01 22:39:06 2014 +0000
@@ -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 @@
{
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);
}
Home |
Main Index |
Thread Index |
Old Index