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