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>
14 char pr_fname[PRFNAMESZ+1];
15 char pr_psargs[PRARGSZ+1];
29 #define ELFCORE_COMPAT_32 1
33 elf_convert_gregset(elfcore_gregset_t *rd, struct reg *rs)
40 rd->r_edi = rs->r_rdi;
41 rd->r_esi = rs->r_rsi;
42 rd->r_ebp = rs->r_rbp;
43 rd->r_ebx = rs->r_rbx;
44 rd->r_edx = rs->r_rdx;
45 rd->r_ecx = rs->r_rcx;
46 rd->r_eax = rs->r_rax;
47 rd->r_eip = rs->r_rip;
49 rd->r_eflags = rs->r_rflags;
50 rd->r_esp = rs->r_rsp;
53 #error Unsupported architecture
58 elf_convert_fpregset(elfcore_fpregset_t *rd, struct fpreg *rs)
61 /* XXX this is wrong... */
62 memcpy(rd, rs, sizeof(*rd));
64 #error Unsupported architecture