1 #ifndef _ASM_POWERPC_KEXEC_H
2 #define _ASM_POWERPC_KEXEC_H
5 #if defined(CONFIG_FSL_BOOKE) || defined(CONFIG_44x)
11 #define KEXEC_SOURCE_MEMORY_LIMIT (2 * 1024 * 1024 * 1024UL - 1)
12 #define KEXEC_DESTINATION_MEMORY_LIMIT (2 * 1024 * 1024 * 1024UL - 1)
13 #define KEXEC_CONTROL_MEMORY_LIMIT (2 * 1024 * 1024 * 1024UL - 1)
21 #define KEXEC_SOURCE_MEMORY_LIMIT (-1UL)
27 #define KEXEC_DESTINATION_MEMORY_LIMIT (-1UL)
31 #define KEXEC_CONTROL_MEMORY_LIMIT (-1UL)
34 #define KEXEC_CONTROL_MEMORY_LIMIT TASK_SIZE
38 #define KEXEC_CONTROL_PAGE_SIZE 4096
42 #define KEXEC_ARCH KEXEC_ARCH_PPC64
44 #define KEXEC_ARCH KEXEC_ARCH_PPC
47 #define KEXEC_STATE_NONE 0
48 #define KEXEC_STATE_IRQS_OFF 1
49 #define KEXEC_STATE_REAL_MODE 2
54 typedef void (*crash_shutdown_t)(
void);
62 static inline void crash_setup_regs(
struct pt_regs *newregs,
66 memcpy(newregs, oldregs,
sizeof(*newregs));
68 ppc_save_regs(newregs);
71 extern void kexec_smp_wait(
void);
74 extern void crash_send_ipi(
void (*crash_ipi_callback)(
struct pt_regs *));
84 extern void machine_kexec_simple(
struct kimage *
image);