Blame arch/nt32/bits/user.h

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