2 * Kernel header file for Linux crash dumps.
4 * Created by: Todd Inglett <tinglett@vnet.ibm.com>
6 * Copyright 2002 International Business Machines
8 * This code is released under version 2 of the GNU GPL.
11 /* This header file holds the architecture specific crash dump header */
15 /* necessary header files */
16 #include <asm/ptrace.h> /* for pt_regs */
17 #include <linux/threads.h>
20 #define DUMP_ASM_MAGIC_NUMBER 0xdeaddeadULL /* magic number */
21 #define DUMP_ASM_VERSION_NUMBER 0x1 /* version number */
25 * Structure: dump_header_asm_t
26 * Function: This is the header for architecture-specific stuff. It
27 * follows right after the dump header.
29 typedef struct _dump_header_asm_s {
31 /* the dump magic number -- unique to verify dump is valid */
32 uint64_t dha_magic_number;
34 /* the version number of this dump */
37 /* the size of this header (in case we can't read it) */
38 uint32_t dha_header_size;
40 /* the dump registers */
41 struct pt_regs dha_regs;
44 uint32_t dha_smp_num_cpus;
46 struct pt_regs dha_smp_regs[NR_CPUS];
47 void * dha_smp_current_task[NR_CPUS];
48 void * dha_stack[NR_CPUS];
52 static inline void get_current_regs(struct pt_regs *regs)
54 __asm__ __volatile__ (
102 extern volatile int dump_in_progress;
103 extern dump_header_asm_t dump_header_asm;
106 extern void dump_send_ipi(int (*dump_ipi_callback)(struct pt_regs *));
108 #define dump_send_ipi()
110 #endif /* __KERNEL__ */
112 #endif /* _ASM_DUMP_H */