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/>. */
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
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
;
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 */
54 struct user_regs_struct
77 struct user_regs_struct regs
;
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
;
87 struct user_regs_struct
* u_ar0
;
88 struct user_fpregs_struct
* u_fpstate
;
89 unsigned long int magic
;
95 #define PAGE_SIZE (1UL << PAGE_SHIFT)
96 #define PAGE_MASK (~(PAGE_SIZE-1))
97 #define NBPG PAGE_SIZE
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 */