[PATCH 1/11] powerpc: Propagate regs through to machine_crash_shutdown

Michael Ellerman michael at ellerman.id.au
Sun Dec 4 18:39:12 EST 2005


Currently machine_crash_shutdown() gets a struct pt_regs, but doesn't pass it
through to the ppc_md function, it should.

Signed-off-by: Michael Ellerman <michael at ellerman.id.au>
---

 arch/powerpc/kernel/machine_kexec.c |    2 +-
 include/asm-powerpc/machdep.h       |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Index: kexec/include/asm-powerpc/machdep.h
===================================================================
--- kexec.orig/include/asm-powerpc/machdep.h
+++ kexec/include/asm-powerpc/machdep.h
@@ -222,7 +222,7 @@ struct machdep_calls {
 	 * to run successfully.
 	 * XXX Should we move this one out of kexec scope?
 	 */
-	void (*machine_crash_shutdown)(void);
+	void (*machine_crash_shutdown)(struct pt_regs *regs);
 
 	/* Called to do what every setup is needed on image and the
 	 * reboot code buffer. Returns 0 on success.
Index: kexec/arch/powerpc/kernel/machine_kexec.c
===================================================================
--- kexec.orig/arch/powerpc/kernel/machine_kexec.c
+++ kexec/arch/powerpc/kernel/machine_kexec.c
@@ -23,7 +23,7 @@ note_buf_t crash_notes[NR_CPUS];
 void machine_crash_shutdown(struct pt_regs *regs)
 {
 	if (ppc_md.machine_crash_shutdown)
-		ppc_md.machine_crash_shutdown();
+		ppc_md.machine_crash_shutdown(regs);
 }
 
 /*



More information about the Linuxppc64-dev mailing list