You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[POWERPC] Make crash.c work on 32-bit and 64-bit
To compile kexec on 32-bit we need a few more bits and pieces. Rather than add empty definitions, we can make crash.c work on 32-bit, with only a couple of kludges. Signed-off-by: Michael Ellerman <michael@ellerman.id.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
committed by
Paul Mackerras
parent
47585d8f5d
commit
b6f35b4966
@@ -32,6 +32,7 @@
|
||||
#endif
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
#include <linux/cpumask.h>
|
||||
|
||||
#ifdef CONFIG_KEXEC
|
||||
|
||||
@@ -109,7 +110,6 @@ static inline void crash_setup_regs(struct pt_regs *newregs,
|
||||
|
||||
#define MAX_NOTE_BYTES 1024
|
||||
|
||||
#ifdef __powerpc64__
|
||||
extern void kexec_smp_wait(void); /* get and clear naca physid, wait for
|
||||
master to copy new code to 0 */
|
||||
extern int crashing_cpu;
|
||||
@@ -119,7 +119,6 @@ static inline int kexec_sr_activated(int cpu)
|
||||
{
|
||||
return cpu_isset(cpu,cpus_in_sr);
|
||||
}
|
||||
#endif /* __powerpc64 __ */
|
||||
|
||||
struct kimage;
|
||||
struct pt_regs;
|
||||
|
||||
Reference in New Issue
Block a user