summaryrefslogtreecommitdiff
path: root/kexec/crashdump.h
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@xensource.com>2007-03-16 10:10:24 +0000
committerSimon Horman <horms@verge.net.au>2007-03-19 13:38:50 +0900
commitcdbc9b011fe43407908632d842e3a39e495e48d9 (patch)
tree99ab9065d606c17bfb838c9155c1a03694f929cc /kexec/crashdump.h
parentefac1da616a211517a4b0eaae098db6ade3bdd26 (diff)
Set crash dump ELF header e_machine field based on underlying hypervisor architecture.
This is necessary when running Xen with a 64 bit hypervisor and 32 bit domain 0 since the CPU crash notes will be 64 bit. Detecting the hypervisor archiecture requires libxenctrl and therefore this support is optional and disabled by default. Signed-off-by: Ian Campbell <ian.campbell@xensource.com> Acked-by: Magnus Damm <magnus@valinux.co.jp> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/crashdump.h')
-rw-r--r--kexec/crashdump.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/kexec/crashdump.h b/kexec/crashdump.h
index 2e9c7cc..e99bdd2 100644
--- a/kexec/crashdump.h
+++ b/kexec/crashdump.h
@@ -42,7 +42,10 @@ int crash_create_elf64_headers(struct kexec_info *info,
void **buf, unsigned long *size,
unsigned long align);
+unsigned long crash_architecture(struct crash_elf_info *elf_info);
+
int xen_present(void);
+unsigned long xen_architecture(struct crash_elf_info *elf_info);
int xen_get_nr_phys_cpus(void);
int xen_get_note(int cpu, uint64_t *addr, uint64_t *len);