blob: 10e8eb1e6f4f67e9ec9d1577927980481659926d [file] [log] [blame]
Michael Ellerman0cc47462005-12-04 18:39:37 +11001#ifndef _PPC64_KDUMP_H
2#define _PPC64_KDUMP_H
3
Michael Ellerman47310412006-05-17 18:00:49 +10004/* Kdump kernel runs at 32 MB, change at your peril. */
5#define KDUMP_KERNELBASE 0x2000000
6
Michael Ellerman0cc47462005-12-04 18:39:37 +11007/* How many bytes to reserve at zero for kdump. The reserve limit should
Michael Ellerman47310412006-05-17 18:00:49 +10008 * be greater or equal to the trampoline's end address.
9 * Reserve to the end of the FWNMI area, see head_64.S */
Sachin P. Sante269d262006-09-08 07:59:52 +053010#define KDUMP_RESERVE_LIMIT 0x10000 /* 64K */
Michael Ellerman0cc47462005-12-04 18:39:37 +110011
Michael Ellerman47310412006-05-17 18:00:49 +100012#ifdef CONFIG_CRASH_DUMP
13
14#define PHYSICAL_START KDUMP_KERNELBASE
Michael Ellerman0cc47462005-12-04 18:39:37 +110015#define KDUMP_TRAMPOLINE_START 0x0100
16#define KDUMP_TRAMPOLINE_END 0x3000
17
Haren Myneni5f508672006-06-22 23:35:10 -070018#define KDUMP_MIN_TCE_ENTRIES 2048
19
Michael Ellerman47310412006-05-17 18:00:49 +100020#else /* !CONFIG_CRASH_DUMP */
21
22#define PHYSICAL_START 0x0
23
24#endif /* CONFIG_CRASH_DUMP */
25
26#ifndef __ASSEMBLY__
27#ifdef CONFIG_CRASH_DUMP
28
29extern void reserve_kdump_trampoline(void);
30extern void setup_kdump_trampoline(void);
31
32#else /* !CONFIG_CRASH_DUMP */
33
34static inline void reserve_kdump_trampoline(void) { ; }
35static inline void setup_kdump_trampoline(void) { ; }
36
37#endif /* CONFIG_CRASH_DUMP */
38#endif /* __ASSEMBLY__ */
Michael Ellerman0cc47462005-12-04 18:39:37 +110039
40#endif /* __PPC64_KDUMP_H */