android_kernel_xiaomi_sm8350/arch/powerpc/platforms/pseries
Michael Ellerman 3d1229d6ae [PATCH] powerpc: Merge kexec
This patch merges, to some extent, the PPC32 and PPC64 kexec implementations.

We adopt the PPC32 approach of having ppc_md callbacks for the kexec functions.
The current PPC64 implementation becomes the "default" implementation for PPC64
which platforms can select if they need no special treatment.

I've added these default callbacks to pseries/maple/cell/powermac, this means
iSeries no longer supports kexec - but it never worked anyway.

I've renamed PPC32's machine_kexec_simple to default_machine_kexec, inline with
PPC64. Judging by the comments it might be better named machine_kexec_non_of,
or something, but at the moment it's the only implementation for PPC32 so it's
the "default".

Kexec requires machine_shutdown(), which is in machine_kexec.c on PPC32, but we
already have in setup-common.c on powerpc. All this does is call
ppc_md.nvram_sync, which only powermac implements, so instead make
machine_shutdown a ppc_md member and have it call core99_nvram_sync directly
on powermac.

I've also stuck relocate_kernel.S into misc_32.S for powerpc.

Built for ARCH=ppc, and 32 & 64 bit ARCH=powerpc, with KEXEC=y/n. Booted on
P5 LPAR and successfully kexec'ed.

Should apply on top of 493f25ef40.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-01-09 14:48:52 +11:00
..
eeh_event.c [PATCH] ppc64: PCI error event dispatcher 2005-11-10 11:38:05 +11:00
eeh.c [PATCH] Avoid use of uninitialised spinlock in EEH. 2005-11-17 16:53:38 +11:00
hvCall.S powerpc: move pSeries files to arch/powerpc/platforms/pseries 2005-10-10 22:03:41 +10:00
hvconsole.c powerpc: Move most remaining ppc64 files over to arch/powerpc 2005-11-14 17:30:17 +11:00
hvcserver.c powerpc: Move most remaining ppc64 files over to arch/powerpc 2005-11-14 17:30:17 +11:00
iommu.c powerpc/pseries: Optimize IOMMU setup 2005-12-05 14:19:10 +11:00
Kconfig powerpc: Merge remaining RTAS code 2005-11-03 14:41:19 +11:00
lpar.c [PATCH] powerpc: Remove debug code in hash path 2005-12-08 16:57:47 +11:00
Makefile powerpc: Move most remaining ppc64 files over to arch/powerpc 2005-11-14 17:30:17 +11:00
nvram.c powerpc: move pSeries files to arch/powerpc/platforms/pseries 2005-10-10 22:03:41 +10:00
pci.c [PATCH] ppc64: fix PCI IO mapping 2005-11-10 15:32:37 +11:00
plpar_wrappers.h [PATCH] powerpc: Make ppc_md.set_dabr non 64-bit specific 2005-11-07 13:31:13 +11:00
ras.c [PATCH] powerpc: Kill ppcdebug 2005-11-07 12:37:45 +11:00
reconfig.c [PATCH] powerpc: merge code values for identifying platforms 2005-11-10 13:37:51 +11:00
rtasd.c powerpc: Fix some compile problems with the VDSO stuff 2005-11-11 23:04:40 +11:00
scanlog.c [PATCH] powerpc: Move scanlog.c to platforms/pseries 2005-11-10 13:09:27 +11:00
setup.c [PATCH] powerpc: Merge kexec 2006-01-09 14:48:52 +11:00
smp.c [PATCH] powerpc: More debugging fixups 2005-11-16 13:29:40 +11:00
vio.c powerpc: move pSeries files to arch/powerpc/platforms/pseries 2005-10-10 22:03:41 +10:00
xics.c powerpc: Fix i8259 cascade on pSeries with XICS interrupt controller 2005-12-22 21:55:37 +11:00
xics.h [PATCH] powerpc: Move xics.[ch] into platforms/pseries 2005-10-28 16:39:19 +10:00