Replace FSF snail mail address with URLs.
[glibc.git] / sysdeps / unix / sysv / linux / i386 / sys / user.h
blobe426afed67cbf087890d4025f7b82189e91e70fe
1 /* Copyright (C) 1998, 2000 Free Software Foundation, Inc.
2 This file is part of the GNU C Library.
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.
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.
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/>. */
18 #ifndef _SYS_USER_H
19 #define _SYS_USER_H 1
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. */
25 struct user_fpregs_struct
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];
37 struct user_fpxregs_struct
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];
54 struct user_regs_struct
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;
75 struct user
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];
94 #define PAGE_SHIFT 12
95 #define PAGE_SIZE (1UL << PAGE_SHIFT)
96 #define PAGE_MASK (~(PAGE_SIZE-1))
97 #define NBPG PAGE_SIZE
98 #define UPAGES 1
99 #define HOST_TEXT_START_ADDR (u.start_code)
100 #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
102 #endif /* _SYS_USER_H */