diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2005-12-04 02:39:12 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-08 22:51:47 -0500 |
commit | cd0ca2ce4b2f4a5132e7e230be8a510755c20870 (patch) | |
tree | 23fe531715b81c852db240b096c8ac43e20dd1c0 | |
parent | e40c7f02723e2be5d3144917191aa9fbec5bb64e (diff) |
[PATCH] powerpc: Propagate regs through to machine_crash_shutdown
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>
-rw-r--r-- | arch/powerpc/kernel/machine_kexec.c | 2 | ||||
-rw-r--r-- | include/asm-powerpc/machdep.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/machine_kexec.c b/arch/powerpc/kernel/machine_kexec.c index d8225c797199..a91e40c9ae45 100644 --- a/arch/powerpc/kernel/machine_kexec.c +++ b/arch/powerpc/kernel/machine_kexec.c | |||
@@ -23,7 +23,7 @@ note_buf_t crash_notes[NR_CPUS]; | |||
23 | void machine_crash_shutdown(struct pt_regs *regs) | 23 | void machine_crash_shutdown(struct pt_regs *regs) |
24 | { | 24 | { |
25 | if (ppc_md.machine_crash_shutdown) | 25 | if (ppc_md.machine_crash_shutdown) |
26 | ppc_md.machine_crash_shutdown(); | 26 | ppc_md.machine_crash_shutdown(regs); |
27 | } | 27 | } |
28 | 28 | ||
29 | /* | 29 | /* |
diff --git a/include/asm-powerpc/machdep.h b/include/asm-powerpc/machdep.h index d6a1a2b5507d..32539022f0a4 100644 --- a/include/asm-powerpc/machdep.h +++ b/include/asm-powerpc/machdep.h | |||
@@ -222,7 +222,7 @@ struct machdep_calls { | |||
222 | * to run successfully. | 222 | * to run successfully. |
223 | * XXX Should we move this one out of kexec scope? | 223 | * XXX Should we move this one out of kexec scope? |
224 | */ | 224 | */ |
225 | void (*machine_crash_shutdown)(void); | 225 | void (*machine_crash_shutdown)(struct pt_regs *regs); |
226 | 226 | ||
227 | /* Called to do what every setup is needed on image and the | 227 | /* Called to do what every setup is needed on image and the |
228 | * reboot code buffer. Returns 0 on success. | 228 | * reboot code buffer. Returns 0 on success. |