powerpc: Move kdump default base address to 64MB on 64bit
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / powerpc / include / asm / kdump.h
blob6857af58b02eef9ddc9f2a91d42d28259a5a4b6b
1 #ifndef _PPC64_KDUMP_H
2 #define _PPC64_KDUMP_H
4 #include <asm/page.h>
6 /*
7 * If CONFIG_RELOCATABLE is enabled we can place the kdump kernel anywhere.
8 * To keep enough space in the RMO for the first stage kernel on 64bit, we
9 * place it at 64MB. If CONFIG_RELOCATABLE is not enabled we must place
10 * the second stage at 32MB.
12 #if defined(CONFIG_RELOCATABLE) && defined(CONFIG_PPC64)
13 #define KDUMP_KERNELBASE 0x4000000
14 #else
15 #define KDUMP_KERNELBASE 0x2000000
16 #endif
18 /* How many bytes to reserve at zero for kdump. The reserve limit should
19 * be greater or equal to the trampoline's end address.
20 * Reserve to the end of the FWNMI area, see head_64.S */
21 #define KDUMP_RESERVE_LIMIT 0x10000 /* 64K */
23 #ifdef CONFIG_CRASH_DUMP
26 * On PPC64 translation is disabled during trampoline setup, so we use
27 * physical addresses. Though on PPC32 translation is already enabled,
28 * so we can't do the same. Luckily create_trampoline() creates relative
29 * branches, so we can just add the PAGE_OFFSET and don't worry about it.
31 #ifdef __powerpc64__
32 #define KDUMP_TRAMPOLINE_START 0x0100
33 #define KDUMP_TRAMPOLINE_END 0x3000
34 #else
35 #define KDUMP_TRAMPOLINE_START (0x0100 + PAGE_OFFSET)
36 #define KDUMP_TRAMPOLINE_END (0x3000 + PAGE_OFFSET)
37 #endif /* __powerpc64__ */
39 #define KDUMP_MIN_TCE_ENTRIES 2048
41 #endif /* CONFIG_CRASH_DUMP */
43 #ifndef __ASSEMBLY__
45 #if defined(CONFIG_CRASH_DUMP) && !defined(CONFIG_RELOCATABLE)
46 extern void reserve_kdump_trampoline(void);
47 extern void setup_kdump_trampoline(void);
48 #else
49 /* !CRASH_DUMP || RELOCATABLE */
50 static inline void reserve_kdump_trampoline(void) { ; }
51 static inline void setup_kdump_trampoline(void) { ; }
52 #endif
54 #endif /* __ASSEMBLY__ */
56 #endif /* __PPC64_KDUMP_H */