diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2018-11-09 18:33:32 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-12-19 08:56:32 +0100 |
commit | 8a01960fb5bd95b920657133de52259227ee6ad7 (patch) | |
tree | 8e838d8c8d9d0352b8ef191dccd8b6801e65e230 /arch/powerpc/platforms/powermac | |
parent | powerpc/44x: use patch_sites for TLB handlers patching (diff) | |
download | linux-8a01960fb5bd95b920657133de52259227ee6ad7.tar.xz linux-8a01960fb5bd95b920657133de52259227ee6ad7.zip |
powerpc/smp: Use code patching to restore reset vector
Instead of hardcoding reset vector restore, use patch_instruction()
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms/powermac')
-rw-r--r-- | arch/powerpc/platforms/powermac/smp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/powermac/smp.c b/arch/powerpc/platforms/powermac/smp.c index 447da6db450a..35be6e0b886d 100644 --- a/arch/powerpc/platforms/powermac/smp.c +++ b/arch/powerpc/platforms/powermac/smp.c @@ -832,8 +832,7 @@ static int smp_core99_kick_cpu(int nr) mdelay(1); /* Restore our exception vector */ - *vector = save_vector; - flush_icache_range((unsigned long) vector, (unsigned long) vector + 4); + patch_instruction(vector, save_vector); local_irq_restore(flags); if (ppc_md.progress) ppc_md.progress("smp_core99_kick_cpu done", 0x347); |