Linux 3.2.23
[linux/fpc-iii.git] / arch / powerpc / include / asm / kdump.h
blobbffd062adf799d605460fee0910d14082765df8c
1 #ifndef _PPC64_KDUMP_H
2 #define _PPC64_KDUMP_H
4 #include <asm/page.h>
6 #define KDUMP_KERNELBASE 0x2000000
8 /* How many bytes to reserve at zero for kdump. The reserve limit should
9 * be greater or equal to the trampoline's end address.
10 * Reserve to the end of the FWNMI area, see head_64.S */
11 #define KDUMP_RESERVE_LIMIT 0x10000 /* 64K */
13 #ifdef CONFIG_CRASH_DUMP
16 * On PPC64 translation is disabled during trampoline setup, so we use
17 * physical addresses. Though on PPC32 translation is already enabled,
18 * so we can't do the same. Luckily create_trampoline() creates relative
19 * branches, so we can just add the PAGE_OFFSET and don't worry about it.
21 #ifdef __powerpc64__
22 #define KDUMP_TRAMPOLINE_START 0x0100
23 #define KDUMP_TRAMPOLINE_END 0x3000
24 #else
25 #define KDUMP_TRAMPOLINE_START (0x0100 + PAGE_OFFSET)
26 #define KDUMP_TRAMPOLINE_END (0x3000 + PAGE_OFFSET)
27 #endif /* __powerpc64__ */
29 #define KDUMP_MIN_TCE_ENTRIES 2048
31 #endif /* CONFIG_CRASH_DUMP */
33 #ifndef __ASSEMBLY__
35 #if defined(CONFIG_CRASH_DUMP) && !defined(CONFIG_RELOCATABLE)
36 extern void reserve_kdump_trampoline(void);
37 extern void setup_kdump_trampoline(void);
38 #else
39 /* !CRASH_DUMP || RELOCATABLE */
40 static inline void reserve_kdump_trampoline(void) { ; }
41 static inline void setup_kdump_trampoline(void) { ; }
42 #endif
44 #endif /* __ASSEMBLY__ */
46 #endif /* __PPC64_KDUMP_H */