1570af302Sopenharmony_ci#undef __WORDSIZE
2570af302Sopenharmony_ci#define __WORDSIZE 32
3570af302Sopenharmony_ci
4570af302Sopenharmony_cistruct user_m68kfp_struct {
5570af302Sopenharmony_ci	unsigned long fpregs[24], fpcntl[3];
6570af302Sopenharmony_ci};
7570af302Sopenharmony_ci
8570af302Sopenharmony_cistruct user_regs_struct {
9570af302Sopenharmony_ci	long d1, d2, d3, d4, d5, d6, d7;
10570af302Sopenharmony_ci	long a0, a1, a2, a3, a4, a5, a6;
11570af302Sopenharmony_ci	long d0, usp, orig_d0;
12570af302Sopenharmony_ci	short stkadj, sr;
13570af302Sopenharmony_ci	long pc;
14570af302Sopenharmony_ci	short fmtvec, __pad;
15570af302Sopenharmony_ci};
16570af302Sopenharmony_ci
17570af302Sopenharmony_cistruct user {
18570af302Sopenharmony_ci	struct user_regs_struct regs;
19570af302Sopenharmony_ci	int u_fpvalid;
20570af302Sopenharmony_ci	struct user_m68kfp_struct m68kfp;
21570af302Sopenharmony_ci	unsigned long u_tsize, u_dsize, u_ssize, start_code, start_stack;
22570af302Sopenharmony_ci	long signal;
23570af302Sopenharmony_ci	int reserved;
24570af302Sopenharmony_ci	unsigned long u_ar0;
25570af302Sopenharmony_ci	struct user_m68kfp_struct *u_fpstate;
26570af302Sopenharmony_ci	unsigned long magic;
27570af302Sopenharmony_ci	char u_comm[32];
28570af302Sopenharmony_ci};
29570af302Sopenharmony_ci
30570af302Sopenharmony_ci#define ELF_NGREG 20
31570af302Sopenharmony_citypedef unsigned long elf_greg_t;
32570af302Sopenharmony_citypedef elf_greg_t elf_gregset_t[ELF_NGREG];
33570af302Sopenharmony_citypedef struct user_m68kfp_struct elf_fpregset_t;
34570af302Sopenharmony_ci
35570af302Sopenharmony_ci#define NBPG			4096
36570af302Sopenharmony_ci#define UPAGES			1
37570af302Sopenharmony_ci#define HOST_TEXT_START_ADDR	(u.start_code)
38570af302Sopenharmony_ci#define HOST_STACK_END_ADDR	(u.start_stack + u.u_ssize * NBPG)
39