xref: /openbmc/linux/arch/parisc/include/asm/kexec.h (revision be122522)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_PARISC_KEXEC_H
3 #define _ASM_PARISC_KEXEC_H
4 
5 #ifdef CONFIG_KEXEC
6 
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 (-1UL)
13 
14 #define KEXEC_CONTROL_PAGE_SIZE	4096
15 
16 #define KEXEC_ARCH KEXEC_ARCH_PARISC
17 #define ARCH_HAS_KIMAGE_ARCH
18 
19 #ifndef __ASSEMBLY__
20 
21 struct kimage_arch {
22 	unsigned long initrd_start;
23 	unsigned long initrd_end;
24 	unsigned long cmdline;
25 };
26 
27 static inline void crash_setup_regs(struct pt_regs *newregs,
28 				    struct pt_regs *oldregs)
29 {
30 	/* Dummy implementation for now */
31 }
32 
33 #endif /* __ASSEMBLY__ */
34 
35 #endif /* CONFIG_KEXEC */
36 
37 #endif /* _ASM_PARISC_KEXEC_H */
38