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