diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-04-05 00:34:58 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2011-04-19 21:03:25 -0400 |
commit | dd797738643cd3c2dd9cdff7e4c3a04d318ab23a (patch) | |
tree | f8980e617597c0438da133e529656e0b5489db00 | |
parent | 948cf67c4726cca2fc57533dccadfb54d890689d (diff) |
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>
-rw-r--r-- | arch/powerpc/kernel/head_64.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/head_64.S b/arch/powerpc/kernel/head_64.S index 0700e1135c91..6d17c37f22a1 100644 --- a/arch/powerpc/kernel/head_64.S +++ b/arch/powerpc/kernel/head_64.S | |||
@@ -147,6 +147,8 @@ __secondary_hold: | |||
147 | mtctr r4 | 147 | mtctr r4 |
148 | mr r3,r24 | 148 | mr r3,r24 |
149 | li r4,0 | 149 | li r4,0 |
150 | /* Make sure that patched code is visible */ | ||
151 | isync | ||
150 | bctr | 152 | bctr |
151 | #else | 153 | #else |
152 | BUG_OPCODE | 154 | BUG_OPCODE |