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