18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _ASM_PARISC_KEXEC_H
38c2ecf20Sopenharmony_ci#define _ASM_PARISC_KEXEC_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci/* Maximum physical address we can use pages from */
68c2ecf20Sopenharmony_ci#define KEXEC_SOURCE_MEMORY_LIMIT (-1UL)
78c2ecf20Sopenharmony_ci/* Maximum address we can reach in physical address mode */
88c2ecf20Sopenharmony_ci#define KEXEC_DESTINATION_MEMORY_LIMIT (-1UL)
98c2ecf20Sopenharmony_ci/* Maximum address we can use for the control code buffer */
108c2ecf20Sopenharmony_ci#define KEXEC_CONTROL_MEMORY_LIMIT (-1UL)
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci#define KEXEC_CONTROL_PAGE_SIZE	4096
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci#define KEXEC_ARCH KEXEC_ARCH_PARISC
158c2ecf20Sopenharmony_ci#define ARCH_HAS_KIMAGE_ARCH
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#ifndef __ASSEMBLY__
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_cistruct kimage_arch {
208c2ecf20Sopenharmony_ci	unsigned long initrd_start;
218c2ecf20Sopenharmony_ci	unsigned long initrd_end;
228c2ecf20Sopenharmony_ci	unsigned long cmdline;
238c2ecf20Sopenharmony_ci};
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_cistatic inline void crash_setup_regs(struct pt_regs *newregs,
268c2ecf20Sopenharmony_ci				    struct pt_regs *oldregs)
278c2ecf20Sopenharmony_ci{
288c2ecf20Sopenharmony_ci	/* Dummy implementation for now */
298c2ecf20Sopenharmony_ci}
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ci#endif /* __ASSEMBLY__ */
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci#endif /* _ASM_PARISC_KEXEC_H */
34