]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] powerpc: Propagate regs through to machine_crash_shutdown
authorMichael Ellerman <michael@ellerman.id.au>
Sun, 4 Dec 2005 07:39:12 +0000 (18:39 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jan 2006 03:51:47 +0000 (14:51 +1100)
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@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/machine_kexec.c
include/asm-powerpc/machdep.h

index d8225c797199e2ff8107b366567103712e92914e..a91e40c9ae45ee6f2c5fa38f799e5d3c0fb7c4ad 100644 (file)
@@ -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);
 }
 
 /*
index d6a1a2b5507d30525252c83b6c8a4b70d46d298c..32539022f0a401b12bef61a01841c064306ddc45 100644 (file)
@@ -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.