blob: a503da9d56f38712786a6757fb223dfaf9c70b1b [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
Mohan Kumar M54622f12008-10-21 17:38:10 +000012/*
13 * Used to differentiate between relocatable kdump kernel and other
14 * kernels
15 */
16#define KDUMP_SIGNATURE 0xfeed1234
17
Michael Ellerman47310412006-05-17 18:00:49 +100018#ifdef CONFIG_CRASH_DUMP
19
Michael Ellerman0cc47462005-12-04 18:39:37 +110020#define KDUMP_TRAMPOLINE_START 0x0100
21#define KDUMP_TRAMPOLINE_END 0x3000
22
Haren Myneni5f508672006-06-22 23:35:10 -070023#define KDUMP_MIN_TCE_ENTRIES 2048
24
Michael Ellerman47310412006-05-17 18:00:49 +100025#endif /* CONFIG_CRASH_DUMP */
26
27#ifndef __ASSEMBLY__
Michael Ellerman47310412006-05-17 18:00:49 +100028
Mohan Kumar M54622f12008-10-21 17:38:10 +000029extern unsigned long __kdump_flag;
30
31#if defined(CONFIG_CRASH_DUMP) && !defined(CONFIG_RELOCATABLE)
Michael Ellerman47310412006-05-17 18:00:49 +100032extern void reserve_kdump_trampoline(void);
33extern void setup_kdump_trampoline(void);
Mohan Kumar M54622f12008-10-21 17:38:10 +000034#else
35/* !CRASH_DUMP || RELOCATABLE */
Michael Ellerman47310412006-05-17 18:00:49 +100036static inline void reserve_kdump_trampoline(void) { ; }
37static inline void setup_kdump_trampoline(void) { ; }
Mohan Kumar M54622f12008-10-21 17:38:10 +000038#endif
Michael Ellerman47310412006-05-17 18:00:49 +100039
Michael Ellerman47310412006-05-17 18:00:49 +100040#endif /* __ASSEMBLY__ */
Michael Ellerman0cc47462005-12-04 18:39:37 +110041
42#endif /* __PPC64_KDUMP_H */