Blame arch/nt64/bits/user.h

87820a
#undef __WORDSIZE
87820a
#define __WORDSIZE 64
87820a
87820a
typedef struct user_fpregs_struct
87820a
{
87820a
	uint16_t cwd, swd, ftw, fop;
87820a
	uint64_t rip, rdp;
87820a
	uint32_t mxcsr, mxcr_mask;
87820a
	uint32_t st_space[32], xmm_space[64], padding[24];
87820a
} elf_fpregset_t;
87820a
87820a
struct user_regs_struct
87820a
{
87820a
	unsigned long r15, r14, r13, r12, rbp, rbx, r11, r10, r9, r8;
87820a
	unsigned long rax, rcx, rdx, rsi, rdi, orig_rax, rip;
87820a
	unsigned long cs, eflags, rsp, ss, fs_base, gs_base, ds, es, fs, gs;
87820a
};
87820a
#define ELF_NGREG 27
87820a
typedef unsigned long long elf_greg_t, elf_gregset_t[ELF_NGREG];
87820a
87820a
struct user
87820a
{
87820a
	struct user_regs_struct		regs;
87820a
	int				u_fpvalid;
87820a
	struct user_fpregs_struct	i387;
87820a
	unsigned long			u_tsize;
87820a
	unsigned long			u_dsize;
87820a
	unsigned long			u_ssize;
87820a
	unsigned long			start_code;
87820a
	unsigned long			start_stack;
87820a
	long				signal;
87820a
	int				reserved;
87820a
	struct user_regs_struct		*u_ar0;
87820a
	struct user_fpregs_struct	*u_fpstate;
87820a
	unsigned long			magic;
87820a
	char				u_comm[32];
87820a
	unsigned long			u_debugreg[8];
87820a
};
87820a
87820a
#define PAGE_MASK		(~(PAGE_SIZE-1))
87820a
#define NBPG			PAGE_SIZE
87820a
#define UPAGES			1
87820a
#define HOST_TEXT_START_ADDR	(u.start_code)
87820a
#define HOST_STACK_END_ADDR	(u.start_stack + u.u_ssize * NBPG)