aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/epapr-wrapper.c
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-09-24 16:10:38 +1000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2013-09-25 14:18:44 +1000
commit0c9fa29149d3726e14262aeb0c8461a948cc9d56 (patch)
treec154e494cf2898fa88f5160cf816f30863e9c8cc /arch/powerpc/boot/epapr-wrapper.c
parentpowerpc: Remove ksp_limit on ppc64 (diff)
downloadlinux-dev-0c9fa29149d3726e14262aeb0c8461a948cc9d56.tar.xz
linux-dev-0c9fa29149d3726e14262aeb0c8461a948cc9d56.zip
powerpc/zImage: make the "OF" wrapper support ePAPR boot
This makes the "OF" zImage wrapper (zImage.pseries, zImage.pmac, zImage.maple) work if booted via a flat device-tree (ePAPR boot mode), and thus potentially usable with kexec. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/boot/epapr-wrapper.c')
-rw-r--r--arch/powerpc/boot/epapr-wrapper.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/powerpc/boot/epapr-wrapper.c b/arch/powerpc/boot/epapr-wrapper.c
new file mode 100644
index 000000000000..c10191006673
--- /dev/null
+++ b/arch/powerpc/boot/epapr-wrapper.c
@@ -0,0 +1,9 @@
+extern void epapr_platform_init(unsigned long r3, unsigned long r4,
+ unsigned long r5, unsigned long r6,
+ unsigned long r7);
+
+void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
+ unsigned long r6, unsigned long r7)
+{
+ epapr_platform_init(r3, r4, r5, r6, r7);
+}