powerpc/kexec: Switch to a static PACA on the way out
authorMatt Evans <matt@ozlabs.org>
Wed, 7 Jul 2010 21:55:37 +0000 (21:55 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sat, 31 Jul 2010 04:56:30 +0000 (14:56 +1000)
commitfc53b4202e61c7e9008c241933ae282aab8a6082
treec279a5256ba18a27ca0b785ecf6819f592a23509
parent7e3f36c3e107bd76b6709e358b1e7c703fb6f81a
powerpc/kexec: Switch to a static PACA on the way out

With dynamic PACAs, the kexecing CPU's PACA won't lie within the kernel
static data and there is a chance that something may stomp it when preparing
to kexec.  This patch switches this final CPU to a static PACA just before
we pull the switch.

Signed-off-by: Matt Evans <matt@ozlabs.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/paca.h
arch/powerpc/kernel/machine_kexec_64.c
arch/powerpc/kernel/paca.c
arch/powerpc/kernel/setup_64.c