diff options
author | Vivek Goyal <vgoyal@in.ibm.com> | 2005-06-25 17:58:12 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-25 19:24:51 -0400 |
commit | 625f1c8219d95300ed32e4c67eb62a50ded095ba (patch) | |
tree | 2e303a649604cabc922f2ade67435eaf83bbfa98 /arch | |
parent | cf13f0eaffa31bf6a145c53c589654b11c72ddc7 (diff) |
[PATCH] Kdump: Export crash notes section address through sysfs
o Following patch exports kexec global variable "crash_notes" to user space
through sysfs as kernel attribute in /sys/kernel.
Signed-off-by: Maneesh Soni <maneesh@in.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/i386/kernel/crash.c | 2 | ||||
-rw-r--r-- | arch/x86_64/kernel/crash.c | 3 |
2 files changed, 0 insertions, 5 deletions
diff --git a/arch/i386/kernel/crash.c b/arch/i386/kernel/crash.c index 59b92d217464..3645ad7ac200 100644 --- a/arch/i386/kernel/crash.c +++ b/arch/i386/kernel/crash.c | |||
@@ -26,8 +26,6 @@ | |||
26 | #include <asm/apic.h> | 26 | #include <asm/apic.h> |
27 | #include <mach_ipi.h> | 27 | #include <mach_ipi.h> |
28 | 28 | ||
29 | #define MAX_NOTE_BYTES 1024 | ||
30 | typedef u32 note_buf_t[MAX_NOTE_BYTES/4]; | ||
31 | 29 | ||
32 | note_buf_t crash_notes[NR_CPUS]; | 30 | note_buf_t crash_notes[NR_CPUS]; |
33 | 31 | ||
diff --git a/arch/x86_64/kernel/crash.c b/arch/x86_64/kernel/crash.c index 7caf8a49d0cb..6183bcb85257 100644 --- a/arch/x86_64/kernel/crash.c +++ b/arch/x86_64/kernel/crash.c | |||
@@ -20,9 +20,6 @@ | |||
20 | #include <asm/nmi.h> | 20 | #include <asm/nmi.h> |
21 | #include <asm/hw_irq.h> | 21 | #include <asm/hw_irq.h> |
22 | 22 | ||
23 | #define MAX_NOTE_BYTES 1024 | ||
24 | typedef u32 note_buf_t[MAX_NOTE_BYTES/4]; | ||
25 | |||
26 | note_buf_t crash_notes[NR_CPUS]; | 23 | note_buf_t crash_notes[NR_CPUS]; |
27 | 24 | ||
28 | void machine_crash_shutdown(void) | 25 | void machine_crash_shutdown(void) |