kexec.h (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) kexec.h (8cd2accb71f5eb8e92d775fc1978d3779875c2e5)
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * kexec.h for kexec
4 * Created by <nschichan@corp.free.fr> on Thu Oct 12 14:59:34 2006
5 */
6
7#ifndef _MIPS_KEXEC
8# define _MIPS_KEXEC

--- 17 unchanged lines hidden (view full) ---

26 struct pt_regs *oldregs)
27{
28 if (oldregs)
29 memcpy(newregs, oldregs, sizeof(*newregs));
30 else
31 prepare_frametrace(newregs);
32}
33
1/* SPDX-License-Identifier: GPL-2.0-only */
2/*
3 * kexec.h for kexec
4 * Created by <nschichan@corp.free.fr> on Thu Oct 12 14:59:34 2006
5 */
6
7#ifndef _MIPS_KEXEC
8# define _MIPS_KEXEC

--- 17 unchanged lines hidden (view full) ---

26 struct pt_regs *oldregs)
27{
28 if (oldregs)
29 memcpy(newregs, oldregs, sizeof(*newregs));
30 else
31 prepare_frametrace(newregs);
32}
33
34#ifdef CONFIG_KEXEC
34#ifdef CONFIG_KEXEC_CORE
35struct kimage;
36extern unsigned long kexec_args[4];
37extern int (*_machine_kexec_prepare)(struct kimage *);
38extern void (*_machine_kexec_shutdown)(void);
39extern void (*_machine_crash_shutdown)(struct pt_regs *regs);
40void default_machine_crash_shutdown(struct pt_regs *regs);
41void kexec_nonboot_cpu_jump(void);
42void kexec_reboot(void);
43#ifdef CONFIG_SMP
44extern const unsigned char kexec_smp_wait[];
45extern unsigned long secondary_kexec_args[4];
46extern atomic_t kexec_ready_to_reboot;
47extern void (*_crash_smp_send_stop)(void);
48#endif
49#endif
50
51#endif /* !_MIPS_KEXEC */
35struct kimage;
36extern unsigned long kexec_args[4];
37extern int (*_machine_kexec_prepare)(struct kimage *);
38extern void (*_machine_kexec_shutdown)(void);
39extern void (*_machine_crash_shutdown)(struct pt_regs *regs);
40void default_machine_crash_shutdown(struct pt_regs *regs);
41void kexec_nonboot_cpu_jump(void);
42void kexec_reboot(void);
43#ifdef CONFIG_SMP
44extern const unsigned char kexec_smp_wait[];
45extern unsigned long secondary_kexec_args[4];
46extern atomic_t kexec_ready_to_reboot;
47extern void (*_crash_smp_send_stop)(void);
48#endif
49#endif
50
51#endif /* !_MIPS_KEXEC */