Module Name: src
Committed By: macallan
Date: Fri May 4 17:13:08 UTC 2018
Modified Files:
src/sys/arch/powerpc/powerpc: locore_subr.S
Log Message:
when spinning up secondary CPUs, put them in bridge mode if the primary cpu is
To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/sys/arch/powerpc/powerpc/locore_subr.S
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/powerpc/powerpc/locore_subr.S
diff -u src/sys/arch/powerpc/powerpc/locore_subr.S:1.55 src/sys/arch/powerpc/powerpc/locore_subr.S:1.56
--- src/sys/arch/powerpc/powerpc/locore_subr.S:1.55 Tue Feb 28 17:35:29 2017
+++ src/sys/arch/powerpc/powerpc/locore_subr.S Fri May 4 17:13:08 2018
@@ -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_lwp_bootstrap)
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