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