diff options
author | Mika Westerberg <mika.westerberg@iki.fi> | 2010-05-10 09:23:37 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-07-09 15:00:52 +0100 |
commit | c63836204b27faec5a22d4b53692690cb967aaac (patch) | |
tree | d9d9213b096d3a379fd2350427facbcaa5551010 | |
parent | 24b776bfb6396fded148167643ffaf8eb3f782b1 (diff) | |
download | op-kernel-dev-c63836204b27faec5a22d4b53692690cb967aaac.zip op-kernel-dev-c63836204b27faec5a22d4b53692690cb967aaac.tar.gz |
ARM: 6118/1: kdump: implement machine_crash_shutdown()
Implement function machine_crash_shutdown() which disables IRQs and
saves machine state to ELF notes structure.
Signed-off-by: Mika Westerberg <ext-mika.1.westerberg@nokia.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r-- | arch/arm/kernel/machine_kexec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/kernel/machine_kexec.c b/arch/arm/kernel/machine_kexec.c index 598ca61..81e9898 100644 --- a/arch/arm/kernel/machine_kexec.c +++ b/arch/arm/kernel/machine_kexec.c @@ -43,6 +43,10 @@ void machine_shutdown(void) void machine_crash_shutdown(struct pt_regs *regs) { + local_irq_disable(); + crash_save_cpu(regs, smp_processor_id()); + + printk(KERN_INFO "Loading crashdump kernel...\n"); } void machine_kexec(struct kimage *image) |