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 A15 change for > 2 cores.
details: https://anonhg.NetBSD.org/src/rev/be6a27460946
branches: trunk
changeset: 338506:be6a27460946
user: matt <matt%NetBSD.org@localhost>
date: Thu May 28 02:23:18 2015 +0000
description:
A15 change for > 2 cores.
diffstat:
sys/arch/arm/cortex/a9_mpsubr.S | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diffs (24 lines):
diff -r 696785a7e894 -r be6a27460946 sys/arch/arm/cortex/a9_mpsubr.S
--- a/sys/arch/arm/cortex/a9_mpsubr.S Thu May 28 02:22:37 2015 +0000
+++ b/sys/arch/arm/cortex/a9_mpsubr.S Thu May 28 02:23:18 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: a9_mpsubr.S,v 1.38 2015/05/17 06:12:40 matt Exp $ */
+/* $NetBSD: a9_mpsubr.S,v 1.39 2015/05/28 02:23:18 matt Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -469,6 +469,14 @@
mrc p15, 0, r0, c1, c0, 1 // ACTLR read
orr r0, r0, #CORTEXA9_AUXCTL_SMP // enable SMP
+#if defined(CPU_CORTEXA15)
+ // The A15 requires snoop-delayed exclusive handling to be set
+ // if there are 3 or more CPUs.
+ mrc p15, 1, r2, c9, c0, 2 // L2CTRL read
+ ubfx r2, r2, #25, #1 // bit 25 is set when 3+ CPUs
+ bfi r0, r2, #31, #1 // copy it to bit 31 in ACTRL
+#endif
+
#if defined(CPU_CORTEXA5) || defined(CPU_CORTEXA9)
//
// Step 4a (continued on A5/A9), ACTLR.FW=1)
Home |
Main Index |
Thread Index |
Old Index