17f30491cSTony Luck #ifndef _ASM_IA64_KEXEC_H 27f30491cSTony Luck #define _ASM_IA64_KEXEC_H 37f30491cSTony Luck 47f30491cSTony Luck 57f30491cSTony Luck /* Maximum physical address we can use pages from */ 67f30491cSTony Luck #define KEXEC_SOURCE_MEMORY_LIMIT (-1UL) 77f30491cSTony Luck /* Maximum address we can reach in physical address mode */ 87f30491cSTony Luck #define KEXEC_DESTINATION_MEMORY_LIMIT (-1UL) 97f30491cSTony Luck /* Maximum address we can use for the control code buffer */ 107f30491cSTony Luck #define KEXEC_CONTROL_MEMORY_LIMIT TASK_SIZE 117f30491cSTony Luck 12*163f6876SHuang Ying #define KEXEC_CONTROL_PAGE_SIZE (8192 + 8192 + 4096) 137f30491cSTony Luck 147f30491cSTony Luck /* The native architecture */ 157f30491cSTony Luck #define KEXEC_ARCH KEXEC_ARCH_IA_64 167f30491cSTony Luck 177f30491cSTony Luck #define kexec_flush_icache_page(page) do { \ 187f30491cSTony Luck unsigned long page_addr = (unsigned long)page_address(page); \ 197f30491cSTony Luck flush_icache_range(page_addr, page_addr + PAGE_SIZE); \ 207f30491cSTony Luck } while(0) 217f30491cSTony Luck 227f30491cSTony Luck extern struct kimage *ia64_kimage; 237f30491cSTony Luck extern const unsigned int relocate_new_kernel_size; 247f30491cSTony Luck extern void relocate_new_kernel(unsigned long, unsigned long, 257f30491cSTony Luck struct ia64_boot_param *, unsigned long); 267f30491cSTony Luck static inline void 277f30491cSTony Luck crash_setup_regs(struct pt_regs *newregs, struct pt_regs *oldregs) 287f30491cSTony Luck { 297f30491cSTony Luck } 307f30491cSTony Luck extern struct resource efi_memmap_res; 317f30491cSTony Luck extern struct resource boot_param_res; 327f30491cSTony Luck extern void kdump_smp_send_stop(void); 337f30491cSTony Luck extern void kdump_smp_send_init(void); 347f30491cSTony Luck extern void kexec_disable_iosapic(void); 357f30491cSTony Luck extern void crash_save_this_cpu(void); 367f30491cSTony Luck struct rsvd_region; 377f30491cSTony Luck extern unsigned long kdump_find_rsvd_region(unsigned long size, 387f30491cSTony Luck struct rsvd_region *rsvd_regions, int n); 397f30491cSTony Luck extern void kdump_cpu_freeze(struct unw_frame_info *info, void *arg); 407f30491cSTony Luck extern int kdump_status[]; 417f30491cSTony Luck extern atomic_t kdump_cpu_freezed; 427f30491cSTony Luck extern atomic_t kdump_in_progress; 437f30491cSTony Luck 447f30491cSTony Luck #endif /* _ASM_IA64_KEXEC_H */ 45