Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/powerpc when spinning up secondary CPUs, pu...



details:   https://anonhg.NetBSD.org/src/rev/2f0518dc8706
branches:  trunk
changeset: 322489:2f0518dc8706
user:      macallan <macallan%NetBSD.org@localhost>
date:      Fri May 04 17:13:08 2018 +0000

description:
when spinning up secondary CPUs, put them in bridge mode if the primary cpu is

diffstat:

 sys/arch/powerpc/powerpc/locore_subr.S |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (28 lines):

diff -r 0ce1675ed811 -r 2f0518dc8706 sys/arch/powerpc/powerpc/locore_subr.S
--- a/sys/arch/powerpc/powerpc/locore_subr.S    Fri May 04 17:01:29 2018 +0000
+++ b/sys/arch/powerpc/powerpc/locore_subr.S    Fri May 04 17:13:08 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore_subr.S,v 1.55 2017/02/28 17:35:29 chs Exp $     */
+/*     $NetBSD: locore_subr.S,v 1.56 2018/05/04 17:13:08 macallan Exp $        */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -526,6 +526,18 @@
 ENTRY(cpu_spinup_trampoline)
        li      %r0,0
        mtmsr   %r0
+
+       lis     %r5,oeacpufeat@ha
+       lwz     %r5,oeacpufeat@l(%r5)
+       andi.   %r5,%r5,OEACPU_64_BRIDGE
+       beq     6f
+       sync
+       slbia
+       sync
+       isync
+       clrldi  %r0,%r0,32
+       mtmsrd  %r0
+6:
        isync
 
        lis     %r4,_C_LABEL(cpu_hatch_stack)@ha



Home | Main Index | Thread Index | Old Index