3 #error "this file must be compiled for LP64."
6 #define __ELF_WORD_SIZE 32
7 #define _MACHINE_ELF_WANT_32BIT
9 #include <sys/procfs.h>
11 #define ELFCORE_COMPAT_32 1
15 elf_convert_gregset(elfcore_gregset_t *rd, struct reg *rs)
22 rd->r_edi = rs->r_rdi;
23 rd->r_esi = rs->r_rsi;
24 rd->r_ebp = rs->r_rbp;
25 rd->r_ebx = rs->r_rbx;
26 rd->r_edx = rs->r_rdx;
27 rd->r_ecx = rs->r_rcx;
28 rd->r_eax = rs->r_rax;
29 rd->r_eip = rs->r_rip;
31 rd->r_eflags = rs->r_rflags;
32 rd->r_esp = rs->r_rsp;
35 #error Unsupported architecture
40 elf_convert_fpregset(elfcore_fpregset_t *rd, struct fpreg *rs)
43 /* XXX this is wrong... */
44 memcpy(rd, rs, sizeof(*rd));
46 #error Unsupported architecture