Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4973 | right-hear | 1 | /* Copyright (C) 1998, 2000 Free Software Foundation, Inc. |
2 | This file is part of the GNU C Library. |
||
3 | |||
4 | The GNU C Library is free software; you can redistribute it and/or |
||
5 | modify it under the terms of the GNU Lesser General Public |
||
6 | License as published by the Free Software Foundation; either |
||
7 | version 2.1 of the License, or (at your option) any later version. |
||
8 | |||
9 | The GNU C Library is distributed in the hope that it will be useful, |
||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
||
12 | Lesser General Public License for more details. |
||
13 | |||
14 | You should have received a copy of the GNU Lesser General Public |
||
15 | License along with the GNU C Library; if not, write to the Free |
||
16 | Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
||
17 | 02111-1307 USA. */ |
||
18 | |||
19 | #ifndef _SYS_USER_H |
||
20 | #define _SYS_USER_H 1 |
||
21 | |||
22 | /* The whole purpose of this file is for GDB and GDB only. Don't read |
||
23 | too much into it. Don't use it for anything other than GDB unless |
||
24 | you know what you are doing. */ |
||
25 | |||
26 | struct user_fpregs_struct |
||
27 | { |
||
28 | long int cwd; |
||
29 | long int swd; |
||
30 | long int twd; |
||
31 | long int fip; |
||
32 | long int fcs; |
||
33 | long int foo; |
||
34 | long int fos; |
||
35 | long int st_space [20]; |
||
36 | }; |
||
37 | |||
38 | struct user_fpxregs_struct |
||
39 | { |
||
40 | unsigned short int cwd; |
||
41 | unsigned short int swd; |
||
42 | unsigned short int twd; |
||
43 | unsigned short int fop; |
||
44 | long int fip; |
||
45 | long int fcs; |
||
46 | long int foo; |
||
47 | long int fos; |
||
48 | long int mxcsr; |
||
49 | long int reserved; |
||
50 | long int st_space[32]; /* 8*16 bytes for each FP-reg = 128 bytes */ |
||
51 | long int xmm_space[32]; /* 8*16 bytes for each XMM-reg = 128 bytes */ |
||
52 | long int padding[56]; |
||
53 | }; |
||
54 | |||
55 | struct user_regs_struct |
||
56 | { |
||
57 | long int ebx; |
||
58 | long int ecx; |
||
59 | long int edx; |
||
60 | long int esi; |
||
61 | long int edi; |
||
62 | long int ebp; |
||
63 | long int eax; |
||
64 | long int xds; |
||
65 | long int xes; |
||
66 | long int xfs; |
||
67 | long int xgs; |
||
68 | long int orig_eax; |
||
69 | long int eip; |
||
70 | long int xcs; |
||
71 | long int eflags; |
||
72 | long int esp; |
||
73 | long int xss; |
||
74 | }; |
||
75 | |||
76 | struct user |
||
77 | { |
||
78 | struct user_regs_struct regs; |
||
79 | int u_fpvalid; |
||
80 | struct user_fpregs_struct i387; |
||
81 | unsigned long int u_tsize; |
||
82 | unsigned long int u_dsize; |
||
83 | unsigned long int u_ssize; |
||
84 | unsigned long start_code; |
||
85 | unsigned long start_stack; |
||
86 | long int signal; |
||
87 | int reserved; |
||
88 | struct user_regs_struct* u_ar0; |
||
89 | struct user_fpregs_struct* u_fpstate; |
||
90 | unsigned long int magic; |
||
91 | char u_comm [32]; |
||
92 | int u_debugreg [8]; |
||
93 | }; |
||
94 | |||
95 | #define PAGE_SHIFT 12 |
||
96 | #define PAGE_SIZE (1UL << PAGE_SHIFT) |
||
97 | #define PAGE_MASK (~(PAGE_SIZE-1)) |
||
98 | #define NBPG PAGE_SIZE |
||
99 | #define UPAGES 1 |
||
100 | #define HOST_TEXT_START_ADDR (u.start_code) |
||
101 | #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG) |
||
102 | |||
103 | #endif /* _SYS_USER_H */><> |