blob: 294b1e1ebd2d99dfb34ed34cc04d6323859a6ee5 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Zou Nan haia79561132006-12-07 09:51:35 -08002#ifndef _ASM_IA64_KEXEC_H
3#define _ASM_IA64_KEXEC_H
4
David Howellsc140d872012-03-28 18:30:02 +01005#include <asm/setup.h>
Zou Nan haia79561132006-12-07 09:51:35 -08006
7/* Maximum physical address we can use pages from */
8#define KEXEC_SOURCE_MEMORY_LIMIT (-1UL)
9/* Maximum address we can reach in physical address mode */
10#define KEXEC_DESTINATION_MEMORY_LIMIT (-1UL)
11/* Maximum address we can use for the control code buffer */
12#define KEXEC_CONTROL_MEMORY_LIMIT TASK_SIZE
13
Huang Ying163f6872008-08-15 00:40:22 -070014#define KEXEC_CONTROL_PAGE_SIZE (8192 + 8192 + 4096)
Zou Nan haia79561132006-12-07 09:51:35 -080015
16/* The native architecture */
17#define KEXEC_ARCH KEXEC_ARCH_IA_64
18
Zou Nan haia79561132006-12-07 09:51:35 -080019#define kexec_flush_icache_page(page) do { \
20 unsigned long page_addr = (unsigned long)page_address(page); \
21 flush_icache_range(page_addr, page_addr + PAGE_SIZE); \
22 } while(0)
23
24extern struct kimage *ia64_kimage;
Tobias Klauserc5a69d52007-02-17 20:11:19 +010025extern const unsigned int relocate_new_kernel_size;
Zou Nan haia79561132006-12-07 09:51:35 -080026extern void relocate_new_kernel(unsigned long, unsigned long,
27 struct ia64_boot_param *, unsigned long);
28static inline void
29crash_setup_regs(struct pt_regs *newregs, struct pt_regs *oldregs)
30{
31}
32extern struct resource efi_memmap_res;
33extern struct resource boot_param_res;
34extern void kdump_smp_send_stop(void);
35extern void kdump_smp_send_init(void);
36extern void kexec_disable_iosapic(void);
37extern void crash_save_this_cpu(void);
38struct rsvd_region;
39extern unsigned long kdump_find_rsvd_region(unsigned long size,
40 struct rsvd_region *rsvd_regions, int n);
41extern void kdump_cpu_freeze(struct unw_frame_info *info, void *arg);
42extern int kdump_status[];
43extern atomic_t kdump_cpu_freezed;
44extern atomic_t kdump_in_progress;
45
46#endif /* _ASM_IA64_KEXEC_H */