xref: /openbmc/linux/arch/powerpc/include/asm/kdump.h (revision 54622f10)
1 #ifndef _PPC64_KDUMP_H
2 #define _PPC64_KDUMP_H
3 
4 /* Kdump kernel runs at 32 MB, change at your peril. */
5 #define KDUMP_KERNELBASE	0x2000000
6 
7 /* How many bytes to reserve at zero for kdump. The reserve limit should
8  * be greater or equal to the trampoline's end address.
9  * Reserve to the end of the FWNMI area, see head_64.S */
10 #define KDUMP_RESERVE_LIMIT	0x10000 /* 64K */
11 
12 /*
13  * Used to differentiate between relocatable kdump kernel and other
14  * kernels
15  */
16 #define KDUMP_SIGNATURE	0xfeed1234
17 
18 #ifdef CONFIG_CRASH_DUMP
19 
20 #define KDUMP_TRAMPOLINE_START	0x0100
21 #define KDUMP_TRAMPOLINE_END	0x3000
22 
23 #define KDUMP_MIN_TCE_ENTRIES	2048
24 
25 #endif /* CONFIG_CRASH_DUMP */
26 
27 #ifndef __ASSEMBLY__
28 
29 extern unsigned long __kdump_flag;
30 
31 #if defined(CONFIG_CRASH_DUMP) && !defined(CONFIG_RELOCATABLE)
32 extern void reserve_kdump_trampoline(void);
33 extern void setup_kdump_trampoline(void);
34 #else
35 /* !CRASH_DUMP || RELOCATABLE */
36 static inline void reserve_kdump_trampoline(void) { ; }
37 static inline void setup_kdump_trampoline(void) { ; }
38 #endif
39 
40 #endif /* __ASSEMBLY__ */
41 
42 #endif /* __PPC64_KDUMP_H */
43