Explorar o código

powerpc: Perform an isync to synchronize CPUs coming out of secondary_hold

We need to do that to guarantee they see any code change done by
dynamic patching during boot.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Benjamin Herrenschmidt %!s(int64=14) %!d(string=hai) anos
pai
achega
dd79773864
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      arch/powerpc/kernel/head_64.S

+ 2 - 0
arch/powerpc/kernel/head_64.S

@@ -147,6 +147,8 @@ __secondary_hold:
 	mtctr	r4
 	mtctr	r4
 	mr	r3,r24
 	mr	r3,r24
 	li	r4,0
 	li	r4,0
+	/* Make sure that patched code is visible */
+	isync
 	bctr
 	bctr
 #else
 #else
 	BUG_OPCODE
 	BUG_OPCODE