X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=arch%2Fx86_64%2Fbits%2Fuser.h;h=8b42632fe61628f7b7715a418ce4315fed279200;hb=facc6acbfd20accea435d10fdd070b23877e40db;hp=13ff027bae27d995a6d987b6f1e758c39797e4a6;hpb=1e12632591ab98a6ea3af8680716c28282552981;p=musl diff --git a/arch/x86_64/bits/user.h b/arch/x86_64/bits/user.h index 13ff027b..8b42632f 100644 --- a/arch/x86_64/bits/user.h +++ b/arch/x86_64/bits/user.h @@ -1,73 +1,40 @@ #undef __WORDSIZE -#define __WORDSIZE 32 +#define __WORDSIZE 64 -struct user_fpregs_struct +typedef struct user_fpregs_struct { - long int cwd; - long int swd; - long int twd; - long int fip; - long int fcs; - long int foo; - long int fos; - long int st_space[20]; -}; - -struct user_fpxregs_struct -{ - unsigned short int cwd; - unsigned short int swd; - unsigned short int twd; - unsigned short int fop; - long int fip; - long int fcs; - long int foo; - long int fos; - long int mxcsr; - long int reserved; - long int st_space[32]; - long int xmm_space[32]; - long int padding[56]; -}; + 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 { - long int ebx; - long int ecx; - long int edx; - long int esi; - long int edi; - long int ebp; - long int eax; - long int xds; - long int xes; - long int xfs; - long int xgs; - long int orig_eax; - long int eip; - long int xcs; - long int eflags; - long int esp; - long int xss; + unsigned long r15, r14, r13, r12, rbp, rbx, r11, r10, r9, r8; + 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 { struct user_regs_struct regs; int u_fpvalid; struct user_fpregs_struct i387; - unsigned long int u_tsize; - unsigned long int u_dsize; - unsigned long int u_ssize; + unsigned long u_tsize; + unsigned long u_dsize; + unsigned long u_ssize; unsigned long start_code; unsigned long start_stack; - long int signal; + long signal; int reserved; struct user_regs_struct *u_ar0; struct user_fpregs_struct *u_fpstate; - unsigned long int magic; + unsigned long magic; char u_comm[32]; - int u_debugreg[8]; + unsigned long u_debugreg[8]; }; #define PAGE_MASK (~(PAGE_SIZE-1))