2011-02-12 05:22:29 +00:00
|
|
|
#undef __WORDSIZE
|
|
|
|
#define __WORDSIZE 32
|
|
|
|
|
2012-11-26 03:28:18 +00:00
|
|
|
typedef struct user_fpregs_struct
|
2011-02-12 05:22:29 +00:00
|
|
|
{
|
2011-09-22 19:35:57 +00:00
|
|
|
long cwd, swd, twd, fip, fcs, foo, fos, st_space[20];
|
2012-11-26 03:28:18 +00:00
|
|
|
} elf_fpregset_t;
|
2011-02-12 05:22:29 +00:00
|
|
|
|
2012-11-26 03:28:18 +00:00
|
|
|
typedef struct user_fpxregs_struct
|
2011-02-12 05:22:29 +00:00
|
|
|
{
|
2011-09-22 19:35:57 +00:00
|
|
|
unsigned short cwd, swd, twd, fop;
|
|
|
|
long fip, fcs, foo, fos, mxcsr, reserved;
|
|
|
|
long st_space[32], xmm_space[32], padding[56];
|
2012-11-26 03:28:18 +00:00
|
|
|
} elf_fpxregset_t;
|
2011-02-12 05:22:29 +00:00
|
|
|
|
|
|
|
struct user_regs_struct
|
|
|
|
{
|
2011-09-22 19:35:57 +00:00
|
|
|
long ebx, ecx, edx, esi, edi, ebp, eax, xds, xes, xfs, xgs;
|
|
|
|
long orig_eax, eip, xcs, eflags, esp, xss;
|
2011-02-12 05:22:29 +00:00
|
|
|
};
|
|
|
|
|
2012-11-26 03:28:18 +00:00
|
|
|
#define ELF_NGREG 17
|
|
|
|
typedef unsigned long elf_greg_t, elf_gregset_t[ELF_NGREG];
|
|
|
|
|
2011-02-12 05:22:29 +00:00
|
|
|
struct user
|
|
|
|
{
|
|
|
|
struct user_regs_struct regs;
|
|
|
|
int u_fpvalid;
|
|
|
|
struct user_fpregs_struct i387;
|
2011-09-22 19:35:57 +00:00
|
|
|
unsigned long u_tsize;
|
|
|
|
unsigned long u_dsize;
|
|
|
|
unsigned long u_ssize;
|
2011-02-12 05:22:29 +00:00
|
|
|
unsigned long start_code;
|
|
|
|
unsigned long start_stack;
|
2011-09-22 19:35:57 +00:00
|
|
|
long signal;
|
2011-02-12 05:22:29 +00:00
|
|
|
int reserved;
|
|
|
|
struct user_regs_struct *u_ar0;
|
|
|
|
struct user_fpregs_struct *u_fpstate;
|
2011-09-22 19:35:57 +00:00
|
|
|
unsigned long magic;
|
2011-02-12 05:22:29 +00:00
|
|
|
char u_comm[32];
|
|
|
|
int u_debugreg[8];
|
|
|
|
};
|
|
|
|
|
|
|
|
#define PAGE_MASK (~(PAGE_SIZE-1))
|
|
|
|
#define NBPG PAGE_SIZE
|
|
|
|
#define UPAGES 1
|
|
|
|
#define HOST_TEXT_START_ADDR (u.start_code)
|
|
|
|
#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
|