[PATCH] tty_io.c balance tty_ldisc_ref()
[linux/fpc-iii.git] / include / asm-ia64 / kexec.h
blob01c36b0047474c7272a863a5610ad443078c8a20
1 #ifndef _ASM_IA64_KEXEC_H
2 #define _ASM_IA64_KEXEC_H
5 /* Maximum physical address we can use pages from */
6 #define KEXEC_SOURCE_MEMORY_LIMIT (-1UL)
7 /* Maximum address we can reach in physical address mode */
8 #define KEXEC_DESTINATION_MEMORY_LIMIT (-1UL)
9 /* Maximum address we can use for the control code buffer */
10 #define KEXEC_CONTROL_MEMORY_LIMIT TASK_SIZE
12 #define KEXEC_CONTROL_CODE_SIZE (8192 + 8192 + 4096)
14 /* The native architecture */
15 #define KEXEC_ARCH KEXEC_ARCH_IA_64
17 #define MAX_NOTE_BYTES 1024
19 #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)
24 extern struct kimage *ia64_kimage;
25 DECLARE_PER_CPU(u64, ia64_mca_pal_base);
26 const extern unsigned int relocate_new_kernel_size;
27 extern void relocate_new_kernel(unsigned long, unsigned long,
28 struct ia64_boot_param *, unsigned long);
29 static inline void
30 crash_setup_regs(struct pt_regs *newregs, struct pt_regs *oldregs)
33 extern struct resource efi_memmap_res;
34 extern struct resource boot_param_res;
35 extern void kdump_smp_send_stop(void);
36 extern void kdump_smp_send_init(void);
37 extern void kexec_disable_iosapic(void);
38 extern void crash_save_this_cpu(void);
39 struct rsvd_region;
40 extern unsigned long kdump_find_rsvd_region(unsigned long size,
41 struct rsvd_region *rsvd_regions, int n);
42 extern void kdump_cpu_freeze(struct unw_frame_info *info, void *arg);
43 extern int kdump_status[];
44 extern atomic_t kdump_cpu_freezed;
45 extern atomic_t kdump_in_progress;
47 #endif /* _ASM_IA64_KEXEC_H */