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>
This commit is contained in:
committed by
Russell King
parent
24b776bfb6
commit
c63836204b
@@ -43,6 +43,10 @@ void machine_shutdown(void)
|
|||||||
|
|
||||||
void machine_crash_shutdown(struct pt_regs *regs)
|
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)
|
void machine_kexec(struct kimage *image)
|
||||||
|
Reference in New Issue
Block a user