2005-04-17 00:20:36 +02:00
|
|
|
#
|
|
|
|
# Makefile for the linux kernel.
|
|
|
|
#
|
2005-09-26 08:04:21 +02:00
|
|
|
ifneq ($(CONFIG_PPC_MERGE),y)
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
extra-$(CONFIG_PPC_STD_MMU) := head.o
|
|
|
|
extra-$(CONFIG_40x) := head_4xx.o
|
|
|
|
extra-$(CONFIG_44x) := head_44x.o
|
|
|
|
extra-$(CONFIG_FSL_BOOKE) := head_fsl_booke.o
|
|
|
|
extra-$(CONFIG_8xx) := head_8xx.o
|
|
|
|
extra-$(CONFIG_6xx) += idle_6xx.o
|
|
|
|
extra-$(CONFIG_POWER4) += idle_power4.o
|
|
|
|
extra-y += vmlinux.lds
|
|
|
|
|
|
|
|
obj-y := entry.o traps.o irq.o idle.o time.o misc.o \
|
2005-10-18 03:17:58 +02:00
|
|
|
process.o align.o \
|
2005-10-18 06:19:41 +02:00
|
|
|
setup.o \
|
2005-10-19 06:53:32 +02:00
|
|
|
ppc_htab.o
|
2005-04-17 00:20:36 +02:00
|
|
|
obj-$(CONFIG_6xx) += l2cr.o cpu_setup_6xx.o
|
|
|
|
obj-$(CONFIG_SOFTWARE_SUSPEND) += swsusp.o
|
|
|
|
obj-$(CONFIG_POWER4) += cpu_setup_power4.o
|
|
|
|
obj-$(CONFIG_MODULES) += module.o ppc_ksyms.o
|
|
|
|
obj-$(CONFIG_NOT_COHERENT_CACHE) += dma-mapping.o
|
|
|
|
obj-$(CONFIG_PCI) += pci.o
|
2005-11-07 10:00:19 +01:00
|
|
|
obj-$(CONFIG_RAPIDIO) += rio.o
|
2005-04-17 00:20:36 +02:00
|
|
|
obj-$(CONFIG_KGDB) += ppc-stub.o
|
|
|
|
obj-$(CONFIG_SMP) += smp.o smp-tbsync.o
|
|
|
|
obj-$(CONFIG_TAU) += temp.o
|
2005-06-25 23:54:37 +02:00
|
|
|
ifndef CONFIG_E200
|
2005-04-17 00:20:36 +02:00
|
|
|
obj-$(CONFIG_FSL_BOOKE) += perfmon_fsl_booke.o
|
2005-06-25 23:54:37 +02:00
|
|
|
endif
|
[PATCH] kexec: kexec ppc support
I have tweaked this patch slightly to handle an empty list
of pages to relocate passed to relocate_new_kernel. And
I have added ppc_md.machine_crash_shutdown. To keep up with
the changes in the generic kexec infrastructure.
From: Albert Herranz <albert_herranz@yahoo.es>
The following patch adds support for kexec on the ppc32 platform.
Non-OpenFirmware based platforms are likely to work directly without
additional changes on the kernel side. The kexec-tools userland package
may need to be slightly updated, though.
For OpenFirmware based machines, additional work is still needed on the
kernel side before kexec support is ready. Benjamin Herrenschmidt is
kindly working on that part.
In order for a ppc platform to use the kexec kernel services it must
implement some ppc_md hooks. Otherwise, kexec will be explicitly disabled,
as suggested by benh.
There are 3+1 new ppc_md hooks that a platform supporting kexec may
implement. Two of them are mandatory for kexec to work. See
include/asm-ppc/machdep.h for details.
- machine_kexec_prepare(image)
This function is called to make any arrangements to the image before it
is loaded.
This hook _MUST_ be provided by a platform in order to activate kexec
support for that platform. Otherwise, the platform is considered to not
support kexec and the kexec_load system call will fail (that makes all
existing platforms by default non-kexec'able).
- machine_kexec_cleanup(image)
This function is called to make any cleanups on image after the loaded
image data it is freed. This hook is optional. A platform may or may
not provide this hook.
- machine_kexec(image)
This function is called to perform the _actual_ kexec. This hook
_MUST_ be provided by a platform in order to activate kexec support for
that platform.
If a platform provides machine_kexec_prepare but forgets to provide
machine_kexec, a kexec will fall back to a reboot.
A ready-to-use machine_kexec_simple() generic function is provided to,
hopefully, simplify kexec adoption for embedded platforms. A platform
may call this function from its specific machine_kexec hook, like this:
void myplatform_kexec(struct kimage *image)
{
machine_kexec_simple(image);
}
- machine_shutdown()
This function is called to perform any machine specific shutdowns, not
already done by drivers. This hook is optional. A platform may or may
not provide this hook.
An example (trimmed) platform specific module for a platform supporting
kexec through the existing machine_kexec_simple follows:
/* ... */
#ifdef CONFIG_KEXEC
int myplatform_kexec_prepare(struct kimage *image)
{
/* here, we can place additional preparations
*/
return 0; /* yes, we support kexec */
}
void myplatform_kexec(struct kimage *image)
{
machine_kexec_simple(image);
}
#endif /* CONFIG_KEXEC */
/* ... */
void __init
platform_init(unsigned long r3, unsigned long r4,
unsigned long r5,
unsigned long r6, unsigned long r7)
{
/* ... */
#ifdef CONFIG_KEXEC
ppc_md.machine_kexec_prepare =
myplatform_kexec_prepare;
ppc_md.machine_kexec =
myplatform_kexec;
#endif /* CONFIG_KEXEC */
/* ... */
}
The kexec ppc kernel support has been heavily tested on the GameCube Linux
port, and, as reported in the fastboot mailing list, it has been tested too
on a Moto 82xx ppc by Rick Richardson.
Signed-off-by: Albert Herranz <albert_herranz@yahoo.es>
Signed-off-by: Eric Biederman <ebiederm@xmission.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-25 23:58:07 +02:00
|
|
|
obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
ifndef CONFIG_MATH_EMULATION
|
|
|
|
obj-$(CONFIG_8xx) += softemu8xx.o
|
|
|
|
endif
|
|
|
|
|
2005-09-19 09:33:25 +02:00
|
|
|
# These are here while we do the architecture merge
|
2005-09-26 08:04:21 +02:00
|
|
|
|
|
|
|
else
|
2005-10-20 01:23:26 +02:00
|
|
|
obj-y := irq.o idle.o \
|
2005-10-19 06:53:32 +02:00
|
|
|
align.o
|
2005-09-26 08:04:21 +02:00
|
|
|
obj-$(CONFIG_6xx) += l2cr.o cpu_setup_6xx.o
|
|
|
|
obj-$(CONFIG_SOFTWARE_SUSPEND) += swsusp.o
|
2005-09-28 12:28:14 +02:00
|
|
|
obj-$(CONFIG_MODULES) += module.o
|
2005-09-26 08:04:21 +02:00
|
|
|
obj-$(CONFIG_NOT_COHERENT_CACHE) += dma-mapping.o
|
|
|
|
obj-$(CONFIG_PCI) += pci.o
|
|
|
|
obj-$(CONFIG_KGDB) += ppc-stub.o
|
|
|
|
obj-$(CONFIG_TAU) += temp.o
|
|
|
|
ifndef CONFIG_E200
|
|
|
|
obj-$(CONFIG_FSL_BOOKE) += perfmon_fsl_booke.o
|
|
|
|
endif
|
|
|
|
obj-$(CONFIG_KEXEC) += machine_kexec.o relocate_kernel.o
|
|
|
|
endif
|