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/i386 | |
parent | 132cc703f82b1d5d308c2db9a353d6c92ea29fda (diff) | |
download | musl-4b75f4ed8d08b26d4bf2ac96191b395218ad888e.tar.gz musl-4b75f4ed8d08b26d4bf2ac96191b395218ad888e.tar.bz2 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/i386')
-rw-r--r-- | arch/i386/bits/user.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/arch/i386/bits/user.h b/arch/i386/bits/user.h index 998c062a..fa623621 100644 --- a/arch/i386/bits/user.h +++ b/arch/i386/bits/user.h @@ -1,17 +1,17 @@ #undef __WORDSIZE #define __WORDSIZE 32 -struct user_fpregs_struct +typedef struct user_fpregs_struct { long cwd, swd, twd, fip, fcs, foo, fos, st_space[20]; -}; +} elf_fpregset_t; -struct user_fpxregs_struct +typedef struct user_fpxregs_struct { unsigned short cwd, swd, twd, fop; long fip, fcs, foo, fos, mxcsr, reserved; long st_space[32], xmm_space[32], padding[56]; -}; +} elf_fpxregset_t; struct user_regs_struct { @@ -19,6 +19,9 @@ struct user_regs_struct long orig_eax, eip, xcs, eflags, esp, xss; }; +#define ELF_NGREG 17 +typedef unsigned long elf_greg_t, elf_gregset_t[ELF_NGREG]; + struct user { struct user_regs_struct regs; |