]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/i386/sys/user.h
update
[l4.git] / l4 / pkg / uclibc / lib / contrib / uclibc / libc / sysdeps / linux / i386 / sys / user.h
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, see
16    <http://www.gnu.org/licenses/>.  */
17
18 #ifndef _SYS_USER_H
19 #define _SYS_USER_H     1
20
21 /* The whole purpose of this file is for GDB and GDB only.  Don't read
22    too much into it.  Don't use it for anything other than GDB unless
23    you know what you are doing.  */
24
25 struct user_fpregs_struct
26 {
27   long int cwd;
28   long int swd;
29   long int twd;
30   long int fip;
31   long int fcs;
32   long int foo;
33   long int fos;
34   long int st_space [20];
35 };
36
37 struct user_fpxregs_struct
38 {
39   unsigned short int cwd;
40   unsigned short int swd;
41   unsigned short int twd;
42   unsigned short int fop;
43   long int fip;
44   long int fcs;
45   long int foo;
46   long int fos;
47   long int mxcsr;
48   long int reserved;
49   long int st_space[32];   /* 8*16 bytes for each FP-reg = 128 bytes */
50   long int xmm_space[32];  /* 8*16 bytes for each XMM-reg = 128 bytes */
51   long int padding[56];
52 };
53
54 struct user_regs_struct
55 {
56   long int ebx;
57   long int ecx;
58   long int edx;
59   long int esi;
60   long int edi;
61   long int ebp;
62   long int eax;
63   long int xds;
64   long int xes;
65   long int xfs;
66   long int xgs;
67   long int orig_eax;
68   long int eip;
69   long int xcs;
70   long int eflags;
71   long int esp;
72   long int xss;
73 };
74
75 struct user
76 {
77   struct user_regs_struct       regs;
78   int                           u_fpvalid;
79   struct user_fpregs_struct     i387;
80   unsigned long int             u_tsize;
81   unsigned long int             u_dsize;
82   unsigned long int             u_ssize;
83   unsigned long                 start_code;
84   unsigned long                 start_stack;
85   long int                      signal;
86   int                           reserved;
87   struct user_regs_struct*      u_ar0;
88   struct user_fpregs_struct*    u_fpstate;
89   unsigned long int             magic;
90   char                          u_comm [32];
91   int                           u_debugreg [8];
92 };
93
94 #include <bits/uClibc_page.h>
95 #define NBPG                    PAGE_SIZE
96 #define UPAGES                  1
97 #define HOST_TEXT_START_ADDR    (u.start_code)
98 #define HOST_STACK_END_ADDR     (u.start_stack + u.u_ssize * NBPG)
99
100 #endif  /* _SYS_USER_H */