[PATCH] kdump: Use real pt_regs from exception
[linux-2.6/openmoko-kernel/knife-kernel.git] / arch / x86_64 / kernel / crash.c
blobd7fa4248501cc300ad4470fc38820b16a6a57c8c
1 /*
2 * Architecture specific (x86_64) functions for kexec based crash dumps.
4 * Created by: Hariprasad Nellitheertha (hari@in.ibm.com)
6 * Copyright (C) IBM Corporation, 2004. All rights reserved.
8 */
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>
18 #include <asm/processor.h>
19 #include <asm/hardirq.h>
20 #include <asm/nmi.h>
21 #include <asm/hw_irq.h>
23 note_buf_t crash_notes[NR_CPUS];
25 void machine_crash_shutdown(struct pt_regs *regs)
27 /* This function is only called after the system
28 * has paniced or is otherwise in a critical state.
29 * The minimum amount of code to allow a kexec'd kernel
30 * to run successfully needs to happen here.
32 * In practice this means shooting down the other cpus in
33 * an SMP system.