2 * Architecture specific (i386) functions for kexec based crash dumps.
4 * Created by: Hariprasad Nellitheertha (hari@in.ibm.com)
6 * Copyright (C) IBM Corporation, 2004. All rights reserved.
10 #include <linux/init.h>
11 #include <linux/types.h>
12 #include <linux/kernel.h>
13 #include <linux/smp.h>
14 #include <linux/irq.h>
15 #include <linux/reboot.h>
16 #include <linux/kexec.h>
17 #include <linux/irq.h>
18 #include <linux/delay.h>
19 #include <linux/elf.h>
20 #include <linux/elfcore.h>
22 #include <asm/processor.h>
23 #include <asm/hardirq.h>
25 #include <asm/hw_irq.h>
27 #define MAX_NOTE_BYTES 1024
28 typedef u32 note_buf_t[MAX_NOTE_BYTES/4];
30 note_buf_t crash_notes[NR_CPUS];
32 void machine_crash_shutdown(void)
34 /* This function is only called after the system
35 * has paniced or is otherwise in a critical state.
36 * The minimum amount of code to allow a kexec'd kernel
37 * to run successfully needs to happen here.
39 * In practice this means shooting down the other cpus in