1 #ifndef LINUX_CRASH_DUMP_H
2 #define LINUX_CRASH_DUMP_H
4 #ifdef CONFIG_CRASH_DUMP
5 #include <linux/kexec.h>
9 #define ELFCORE_ADDR_MAX (-1ULL)
10 #define ELFCORE_ADDR_ERR (-2ULL)
20 #ifndef vmcore_elf_check_arch_cross
21 #define vmcore_elf_check_arch_cross(x) 0
29 #ifndef vmcore_elf64_check_arch
30 #define vmcore_elf64_check_arch(x) (elf_check_arch(x) || vmcore_elf_check_arch_cross(x))
43 static inline int is_kdump_kernel(
void)
56 static inline int is_vmcore_usable(
void)
58 return is_kdump_kernel() &&
elfcorehdr_addr != ELFCORE_ADDR_ERR ? 1 : 0;
65 static inline void vmcore_unusable(
void)
67 if (is_kdump_kernel())
71 #define HAVE_OLDMEM_PFN_IS_RAM 1
76 static inline int is_kdump_kernel(
void) {
return 0; }