blob: f6c93c7168988664ad6144d06936ac3ebfc964ca [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
Michael Ellerman0cc47462005-12-04 18:39:37 +110014#define KDUMP_TRAMPOLINE_START 0x0100
15#define KDUMP_TRAMPOLINE_END 0x3000
16
Haren Myneni5f508672006-06-22 23:35:10 -070017#define KDUMP_MIN_TCE_ENTRIES 2048
18
Michael Ellerman47310412006-05-17 18:00:49 +100019#endif /* CONFIG_CRASH_DUMP */
20
21#ifndef __ASSEMBLY__
22#ifdef CONFIG_CRASH_DUMP
23
24extern void reserve_kdump_trampoline(void);
25extern void setup_kdump_trampoline(void);
26
27#else /* !CONFIG_CRASH_DUMP */
28
29static inline void reserve_kdump_trampoline(void) { ; }
30static inline void setup_kdump_trampoline(void) { ; }
31
32#endif /* CONFIG_CRASH_DUMP */
33#endif /* __ASSEMBLY__ */
Michael Ellerman0cc47462005-12-04 18:39:37 +110034
35#endif /* __PPC64_KDUMP_H */