compat: generic compat_sys_sched_rr_get_interval() implementation
[deliverable/linux.git] / arch / powerpc / include / asm / kdump.h
CommitLineData
0cc4746c
ME
1#ifndef _PPC64_KDUMP_H
2#define _PPC64_KDUMP_H
3
f8f50b1b
DF
4#include <asm/page.h>
5
47310413
ME
6#define KDUMP_KERNELBASE 0x2000000
7
0cc4746c 8/* How many bytes to reserve at zero for kdump. The reserve limit should
47310413
ME
9 * be greater or equal to the trampoline's end address.
10 * Reserve to the end of the FWNMI area, see head_64.S */
e269d269 11#define KDUMP_RESERVE_LIMIT 0x10000 /* 64K */
0cc4746c 12
47310413
ME
13#ifdef CONFIG_CRASH_DUMP
14
f8f50b1b
DF
15/*
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.
20 */
21#ifdef __powerpc64__
0cc4746c
ME
22#define KDUMP_TRAMPOLINE_START 0x0100
23#define KDUMP_TRAMPOLINE_END 0x3000
f8f50b1b
DF
24#else
25#define KDUMP_TRAMPOLINE_START (0x0100 + PAGE_OFFSET)
26#define KDUMP_TRAMPOLINE_END (0x3000 + PAGE_OFFSET)
27#endif /* __powerpc64__ */
0cc4746c 28
5f50867b
HM
29#define KDUMP_MIN_TCE_ENTRIES 2048
30
47310413
ME
31#endif /* CONFIG_CRASH_DUMP */
32
33#ifndef __ASSEMBLY__
47310413 34
0f890c8d 35#if defined(CONFIG_CRASH_DUMP) && !defined(CONFIG_NONSTATIC_KERNEL)
47310413
ME
36extern void reserve_kdump_trampoline(void);
37extern void setup_kdump_trampoline(void);
54622f10 38#else
0f890c8d 39/* !CRASH_DUMP || !NONSTATIC_KERNEL */
47310413
ME
40static inline void reserve_kdump_trampoline(void) { ; }
41static inline void setup_kdump_trampoline(void) { ; }
54622f10 42#endif
47310413 43
47310413 44#endif /* __ASSEMBLY__ */
0cc4746c
ME
45
46#endif /* __PPC64_KDUMP_H */
This page took 0.570081 seconds and 5 git commands to generate.