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