crash_dump.h 813 B

1234567891011121314151617181920212223242526
  1. #ifndef LINUX_CRASH_DUMP_H
  2. #define LINUX_CRASH_DUMP_H
  3. #ifdef CONFIG_CRASH_DUMP
  4. #include <linux/kexec.h>
  5. #include <linux/smp_lock.h>
  6. #include <linux/device.h>
  7. #include <linux/proc_fs.h>
  8. #define ELFCORE_ADDR_MAX (-1ULL)
  9. extern unsigned long long elfcorehdr_addr;
  10. extern ssize_t copy_oldmem_page(unsigned long, char *, size_t,
  11. unsigned long, int);
  12. extern const struct file_operations proc_vmcore_operations;
  13. extern struct proc_dir_entry *proc_vmcore;
  14. /* Architecture code defines this if there are other possible ELF
  15. * machine types, e.g. on bi-arch capable hardware. */
  16. #ifndef vmcore_elf_check_arch_cross
  17. #define vmcore_elf_check_arch_cross(x) 0
  18. #endif
  19. #define vmcore_elf_check_arch(x) (elf_check_arch(x) || vmcore_elf_check_arch_cross(x))
  20. #endif /* CONFIG_CRASH_DUMP */
  21. #endif /* LINUX_CRASHDUMP_H */