mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 09:31:50 +00:00
163f6876f5
Rename KEXEC_CONTROL_CODE_SIZE to KEXEC_CONTROL_PAGE_SIZE, because control page is used for not only code on some platform. For example in kexec jump, it is used for data and stack too. [akpm@linux-foundation.org: unbreak powerpc and arm, finish conversion] Signed-off-by: Huang Ying <ying.huang@intel.com> Cc: Pavel Machek <pavel@ucw.cz> Cc: "Rafael J. Wysocki" <rjw@sisk.pl> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Vivek Goyal <vgoyal@redhat.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Russell King <rmk@arm.linux.org.uk> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
45 lines
1.5 KiB
C
45 lines
1.5 KiB
C
#ifndef _ASM_IA64_KEXEC_H
|
|
#define _ASM_IA64_KEXEC_H
|
|
|
|
|
|
/* Maximum physical address we can use pages from */
|
|
#define KEXEC_SOURCE_MEMORY_LIMIT (-1UL)
|
|
/* Maximum address we can reach in physical address mode */
|
|
#define KEXEC_DESTINATION_MEMORY_LIMIT (-1UL)
|
|
/* Maximum address we can use for the control code buffer */
|
|
#define KEXEC_CONTROL_MEMORY_LIMIT TASK_SIZE
|
|
|
|
#define KEXEC_CONTROL_PAGE_SIZE (8192 + 8192 + 4096)
|
|
|
|
/* The native architecture */
|
|
#define KEXEC_ARCH KEXEC_ARCH_IA_64
|
|
|
|
#define kexec_flush_icache_page(page) do { \
|
|
unsigned long page_addr = (unsigned long)page_address(page); \
|
|
flush_icache_range(page_addr, page_addr + PAGE_SIZE); \
|
|
} while(0)
|
|
|
|
extern struct kimage *ia64_kimage;
|
|
extern const unsigned int relocate_new_kernel_size;
|
|
extern void relocate_new_kernel(unsigned long, unsigned long,
|
|
struct ia64_boot_param *, unsigned long);
|
|
static inline void
|
|
crash_setup_regs(struct pt_regs *newregs, struct pt_regs *oldregs)
|
|
{
|
|
}
|
|
extern struct resource efi_memmap_res;
|
|
extern struct resource boot_param_res;
|
|
extern void kdump_smp_send_stop(void);
|
|
extern void kdump_smp_send_init(void);
|
|
extern void kexec_disable_iosapic(void);
|
|
extern void crash_save_this_cpu(void);
|
|
struct rsvd_region;
|
|
extern unsigned long kdump_find_rsvd_region(unsigned long size,
|
|
struct rsvd_region *rsvd_regions, int n);
|
|
extern void kdump_cpu_freeze(struct unw_frame_info *info, void *arg);
|
|
extern int kdump_status[];
|
|
extern atomic_t kdump_cpu_freezed;
|
|
extern atomic_t kdump_in_progress;
|
|
|
|
#endif /* _ASM_IA64_KEXEC_H */
|