kexec.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef _ASM_IA64_KEXEC_H
  2. #define _ASM_IA64_KEXEC_H
  3. #include <asm/setup.h>
  4. /* Maximum physical address we can use pages from */
  5. #define KEXEC_SOURCE_MEMORY_LIMIT (-1UL)
  6. /* Maximum address we can reach in physical address mode */
  7. #define KEXEC_DESTINATION_MEMORY_LIMIT (-1UL)
  8. /* Maximum address we can use for the control code buffer */
  9. #define KEXEC_CONTROL_MEMORY_LIMIT TASK_SIZE
  10. #define KEXEC_CONTROL_PAGE_SIZE (8192 + 8192 + 4096)
  11. /* The native architecture */
  12. #define KEXEC_ARCH KEXEC_ARCH_IA_64
  13. #define kexec_flush_icache_page(page) do { \
  14. unsigned long page_addr = (unsigned long)page_address(page); \
  15. flush_icache_range(page_addr, page_addr + PAGE_SIZE); \
  16. } while(0)
  17. extern struct kimage *ia64_kimage;
  18. extern const unsigned int relocate_new_kernel_size;
  19. extern void relocate_new_kernel(unsigned long, unsigned long,
  20. struct ia64_boot_param *, unsigned long);
  21. static inline void
  22. crash_setup_regs(struct pt_regs *newregs, struct pt_regs *oldregs)
  23. {
  24. }
  25. extern struct resource efi_memmap_res;
  26. extern struct resource boot_param_res;
  27. extern void kdump_smp_send_stop(void);
  28. extern void kdump_smp_send_init(void);
  29. extern void kexec_disable_iosapic(void);
  30. extern void crash_save_this_cpu(void);
  31. struct rsvd_region;
  32. extern unsigned long kdump_find_rsvd_region(unsigned long size,
  33. struct rsvd_region *rsvd_regions, int n);
  34. extern void kdump_cpu_freeze(struct unw_frame_info *info, void *arg);
  35. extern int kdump_status[];
  36. extern atomic_t kdump_cpu_freezed;
  37. extern atomic_t kdump_in_progress;
  38. #endif /* _ASM_IA64_KEXEC_H */