[PATCH] kexec: s390 support
[linux/fpc-iii.git] / include / asm-ppc64 / kexec.h
blob511908afaeeb79ce785516389a2bb7275e54c87c
1 #ifndef _PPC64_KEXEC_H
2 #define _PPC64_KEXEC_H
4 /*
5 * KEXEC_SOURCE_MEMORY_LIMIT maximum page get_free_page can return.
6 * I.e. Maximum page that is mapped directly into kernel memory,
7 * and kmap is not required.
8 */
10 /* Maximum physical address we can use pages from */
11 /* XXX: since we copy virt we can use any page we allocate */
12 #define KEXEC_SOURCE_MEMORY_LIMIT (-1UL)
14 /* Maximum address we can reach in physical address mode */
15 /* XXX: I want to allow initrd in highmem. otherwise set to rmo on lpar */
16 #define KEXEC_DESTINATION_MEMORY_LIMIT (-1UL)
18 /* Maximum address we can use for the control code buffer */
19 /* XXX: unused today, ppc32 uses TASK_SIZE, probably left over from use_mm */
20 #define KEXEC_CONTROL_MEMORY_LIMIT (-1UL)
22 /* XXX: today we don't use this at all, althogh we have a static stack */
23 #define KEXEC_CONTROL_CODE_SIZE 4096
25 /* The native architecture */
26 #define KEXEC_ARCH KEXEC_ARCH_PPC64
28 #define MAX_NOTE_BYTES 1024
30 #ifndef __ASSEMBLY__
32 typedef u32 note_buf_t[MAX_NOTE_BYTES/4];
34 extern note_buf_t crash_notes[];
36 extern void kexec_smp_wait(void); /* get and clear naca physid, wait for
37 master to copy new code to 0 */
39 #endif /* __ASSEMBLY__ */
40 #endif /* _PPC_KEXEC_H */