lkml.org 
[lkml]   [2005]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH][2.6.15-rc3] powerpc: Fix kexec on PPC32
From
Date
The PPC merge broke CONFIG_KEXEC on PPC32 very slightly.

Signed-off-by: Kyle Moffett <mrmacman_g4@mac.com>

--
NOTE: This is compile and boot tested, but I haven't had time to read
the kexec docs and start playing with kexec yet, so it may not work
correctly.

diff -ru linux-2.6.15-rc3/arch/ppc/kernel/machine_kexec.c linux-2.6.15-rc3-aphrodite1/arch/ppc/kernel/machine_kexec.c
--- linux-2.6.15-rc3/arch/ppc/kernel/machine_kexec.c 2005-11-29 12:57:27.000000000 -0500
+++ linux-2.6.15-rc3-aphrodite1/arch/ppc/kernel/machine_kexec.c 2005-11-29 14:45:48.000000000 -0500
@@ -34,11 +34,13 @@
*/
note_buf_t crash_notes[NR_CPUS];

+#ifndef CONFIG_PPC_MERGE
void machine_shutdown(void)
{
if (ppc_md.machine_shutdown)
ppc_md.machine_shutdown();
}
+#endif

void machine_crash_shutdown(struct pt_regs *regs)
{
diff -ru linux-2.6.15-rc3/include/asm-powerpc/machdep.h linux-2.6.15-rc3-aphrodite1/include/asm-powerpc/machdep.h
--- linux-2.6.15-rc3/include/asm-powerpc/machdep.h 2005-11-29 14:49:54.000000000 -0500
+++ linux-2.6.15-rc3-aphrodite1/include/asm-powerpc/machdep.h 2005-11-29 14:52:51.000000000 -0500
@@ -13,6 +13,7 @@
#include <linux/seq_file.h>
#include <linux/init.h>
#include <linux/dma-mapping.h>
+#include <linux/kexec.h>

#include <asm/setup.h>
\
 
 \ /
  Last update: 2005-11-30 20:08    [W:6.559 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site