blob: b07ebb9784d365b61d4216969fe24fa5c697e269 [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__
Michael Ellerman47310412006-05-17 18:00:49 +100022
Mohan Kumar M54622f12008-10-21 17:38:10 +000023#if defined(CONFIG_CRASH_DUMP) && !defined(CONFIG_RELOCATABLE)
Michael Ellerman47310412006-05-17 18:00:49 +100024extern void reserve_kdump_trampoline(void);
25extern void setup_kdump_trampoline(void);
Mohan Kumar M54622f12008-10-21 17:38:10 +000026#else
27/* !CRASH_DUMP || RELOCATABLE */
Michael Ellerman47310412006-05-17 18:00:49 +100028static inline void reserve_kdump_trampoline(void) { ; }
29static inline void setup_kdump_trampoline(void) { ; }
Mohan Kumar M54622f12008-10-21 17:38:10 +000030#endif
Michael Ellerman47310412006-05-17 18:00:49 +100031
Michael Ellerman47310412006-05-17 18:00:49 +100032#endif /* __ASSEMBLY__ */
Michael Ellerman0cc47462005-12-04 18:39:37 +110033
34#endif /* __PPC64_KDUMP_H */