1
2
3
4
5
6 #ifndef _SPARC_USER_H
7 #define _SPARC_USER_H
8
9 struct user {
10 unsigned long regs[24 + 32];
11 size_t u_tsize;
12 size_t u_dsize;
13 size_t u_ssize;
14 unsigned long start_code;
15 unsigned long start_data;
16 unsigned long start_stack;
17 int signal;
18 unsigned long *u_ar0;
19 unsigned long magic;
20 char u_comm[32];
21 };
22
23 #define NBPG PAGE_SIZE
24 #define UPAGES 1
25 #define HOST_TEXT_START_ADDR (u.start_code)
26 #define HOST_DATA_START_ADDR (u.start_data)
27 #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
28
29 #endif