diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-11-25 22:28:18 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-11-25 22:28:18 -0500 |
commit | 4b75f4ed8d08b26d4bf2ac96191b395218ad888e (patch) | |
tree | e2fc90140da04f5e0436bcf069097d63b6a402ef /arch/x86_64/bits | |
parent | 132cc703f82b1d5d308c2db9a353d6c92ea29fda (diff) | |
download | musl-4b75f4ed8d08b26d4bf2ac96191b395218ad888e.tar.gz musl-4b75f4ed8d08b26d4bf2ac96191b395218ad888e.tar.xz musl-4b75f4ed8d08b26d4bf2ac96191b395218ad888e.zip |
make sys/procfs.h mostly work on most archs
these structures are purely for use by trace/debug tools and tools working with core files. the definition of fpregset_t, which was previously here, has been removed because it was wrong; fpregset_t should be the type used in mcontext_t, not the type used in ptrace/core stuff.
Diffstat (limited to 'arch/x86_64/bits')
-rw-r--r-- | arch/x86_64/bits/user.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/x86_64/bits/user.h b/arch/x86_64/bits/user.h index 384f18ec..8b42632f 100644 --- a/arch/x86_64/bits/user.h +++ b/arch/x86_64/bits/user.h @@ -1,13 +1,13 @@ #undef __WORDSIZE #define __WORDSIZE 64 -struct user_fpregs_struct +typedef struct user_fpregs_struct { uint16_t cwd, swd, ftw, fop; uint64_t rip, rdp; uint32_t mxcsr, mxcs_mask; uint32_t st_space[32], xmm_space[64], padding[24]; -}; +} elf_fpregset_t; struct user_regs_struct { @@ -15,6 +15,8 @@ struct user_regs_struct unsigned long rax, rcx, rdx, rsi, rdi, orig_rax, rip; unsigned long cs, eflags, rsp, ss, fs_base, gs_base, ds, es, fs, gs; }; +#define ELF_NGREG 27 +typedef unsigned long long elf_greg_t, elf_gregset_t[ELF_NGREG]; struct user { |