mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04: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 <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
This commit is contained in:
parent
47585d8f5d
commit
b6f35b4966
5 changed files with 14 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue