1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../dietlibc/user.h.patch
5 # Copyright (C) 2004 - 2005 The T2 SDE Project
6 # Copyright (C) 1998 - 2004 ROCK Linux Project
8 # More information can be found in the files COPYING and README.
10 # This patch file is dual-licensed. It is available under the license the
11 # patched project is licensed under, as long as it is an OpenSource license
12 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
13 # of the GNU General Public License as published by the Free Software
14 # Foundation; either version 2 of the License, or (at your option) any later
16 # --- T2-COPYRIGHT-NOTE-END ---
18 --- ./include/sys/user.h.orig Mon May 13 12:04:35 2002
19 +++ ./include/sys/user.h Mon May 13 12:04:58 2002
21 +/* Copyright (C) 1998, 2000 Free Software Foundation, Inc.
22 + This file is part of the GNU C Library.
24 + The GNU C Library is free software; you can redistribute it and/or
25 + modify it under the terms of the GNU Lesser General Public
26 + License as published by the Free Software Foundation; either
27 + version 2.1 of the License, or (at your option) any later version.
29 + The GNU C Library is distributed in the hope that it will be useful,
30 + but WITHOUT ANY WARRANTY; without even the implied warranty of
31 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
32 + Lesser General Public License for more details.
34 + You should have received a copy of the GNU Lesser General Public
35 + License along with the GNU C Library; if not, write to the Free
36 + Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
40 +#define _SYS_USER_H 1
42 +/* The whole purpose of this file is for GDB and GDB only. Don't read
43 + too much into it. Don't use it for anything other than GDB unless
44 + you know what you are doing. */
46 +struct user_fpregs_struct
55 + long int st_space [20];
58 +struct user_fpxregs_struct
60 + unsigned short int cwd;
61 + unsigned short int swd;
62 + unsigned short int twd;
63 + unsigned short int fop;
70 + long int st_space[32]; /* 8*16 bytes for each FP-reg = 128 bytes */
71 + long int xmm_space[32]; /* 8*16 bytes for each XMM-reg = 128 bytes */
72 + long int padding[56];
75 +struct user_regs_struct
98 + struct user_regs_struct regs;
100 + struct user_fpregs_struct i387;
101 + unsigned long int u_tsize;
102 + unsigned long int u_dsize;
103 + unsigned long int u_ssize;
104 + unsigned long start_code;
105 + unsigned long start_stack;
108 + struct user_regs_struct* u_ar0;
109 + struct user_fpregs_struct* u_fpstate;
110 + unsigned long int magic;
112 + int u_debugreg [8];
115 +#define PAGE_SHIFT 12
116 +#define PAGE_SIZE (1UL << PAGE_SHIFT)
117 +#define PAGE_MASK (~(PAGE_SIZE-1))
118 +#define NBPG PAGE_SIZE
120 +#define HOST_TEXT_START_ADDR (u.start_code)
121 +#define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
123 +#endif /* _SYS_USER_H */