summaryrefslogtreecommitdiff
path: root/kexec/arch/ppc64/kexec-ppc64.h
diff options
context:
space:
mode:
Diffstat (limited to 'kexec/arch/ppc64/kexec-ppc64.h')
-rw-r--r--kexec/arch/ppc64/kexec-ppc64.h23
1 files changed, 9 insertions, 14 deletions
diff --git a/kexec/arch/ppc64/kexec-ppc64.h b/kexec/arch/ppc64/kexec-ppc64.h
index 920ac46..89ee942 100644
--- a/kexec/arch/ppc64/kexec-ppc64.h
+++ b/kexec/arch/ppc64/kexec-ppc64.h
@@ -6,33 +6,28 @@
#define CORE_TYPE_ELF32 1
#define CORE_TYPE_ELF64 2
+#define BOOT_BLOCK_VERSION 17
+#define BOOT_BLOCK_LAST_COMP_VERSION 17
+#if (BOOT_BLOCK_VERSION < 16)
+# define NEED_STRUCTURE_BLOCK_EXTRA_PAD
+#endif
+#define HAVE_DYNAMIC_MEMORY
+#define NEED_RESERVE_DTB
+
int setup_memory_ranges(unsigned long kexec_flags);
int elf_ppc64_probe(const char *buf, off_t len);
int elf_ppc64_load(int argc, char **argv, const char *buf, off_t len,
struct kexec_info *info);
void elf_ppc64_usage(void);
-void reserve(unsigned long long where, unsigned long long length);
-int create_flatten_tree(char **, off_t *, char *);
+struct mem_ehdr;
unsigned long my_r2(const struct mem_ehdr *ehdr);
extern uint64_t initrd_base, initrd_size;
extern int max_memory_ranges;
extern unsigned char reuse_initrd;
-/* boot block version 2 as defined by the linux kernel */
-struct bootblock {
- unsigned magic,
- totalsize,
- off_dt_struct,
- off_dt_strings,
- off_mem_rsvmap,
- version,
- last_comp_version,
- boot_physid;
-};
-
struct arch_options_t {
int core_header_type;
};