• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #undef __WORDSIZE
2 #define __WORDSIZE 32
3 
4 #define REG_REG0	 0
5 #define REG_REG15	15
6 #define REG_PC		16
7 #define REG_PR		17
8 #define REG_SR		18
9 #define REG_GBR		19
10 #define REG_MACH	20
11 #define REG_MACL	21
12 #define REG_SYSCALL	22
13 #define REG_FPREG0	23
14 #define REG_FPREG15	38
15 #define REG_XFREG0	39
16 #define REG_XFREG15	54
17 #define REG_FPSCR	55
18 #define REG_FPUL	56
19 
20 struct user_fpu_struct {
21 	unsigned long fp_regs[16];
22 	unsigned long xfp_regs[16];
23 	unsigned long fpscr;
24 	unsigned long fpul;
25 };
26 
27 #define ELF_NGREG 23
28 typedef unsigned long elf_greg_t;
29 typedef elf_greg_t elf_gregset_t[ELF_NGREG];
30 typedef struct user_fpu_struct elf_fpregset_t;
31 
32 struct user {
33 	struct {
34 		unsigned long regs[16];
35 		unsigned long pc, pr, sr, gbr, mach, macl;
36 		long tra;
37 	} regs;
38 	struct user_fpu_struct fpu;
39 	int u_fpvalid;
40 	unsigned long u_tsize;
41 	unsigned long u_dsize;
42 	unsigned long u_ssize;
43 	unsigned long start_code;
44 	unsigned long start_data;
45 	unsigned long start_stack;
46 	long int signal;
47 	unsigned long u_ar0;
48 	struct user_fpu_struct *u_fpstate;
49 	unsigned long magic;
50 	char u_comm[32];
51 };
52