Dash:
[t2.git] / package / base / dietlibc / user.h.patch
blob372b3e0a06bd4924e1a48e7e0c1d97c223a6cccf
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
3 #
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
7 #
8 # More information can be found in the files COPYING and README.
9 #
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
15 # version.
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
20 @@ -0,0 +1,103 @@
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
37 + 02111-1307 USA. */
39 +#ifndef _SYS_USER_H
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
48 + long int cwd;
49 + long int swd;
50 + long int twd;
51 + long int fip;
52 + long int fcs;
53 + long int foo;
54 + long int fos;
55 + long int st_space [20];
56 +};
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;
64 + long int fip;
65 + long int fcs;
66 + long int foo;
67 + long int fos;
68 + long int mxcsr;
69 + long int reserved;
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];
73 +};
75 +struct user_regs_struct
77 + long int ebx;
78 + long int ecx;
79 + long int edx;
80 + long int esi;
81 + long int edi;
82 + long int ebp;
83 + long int eax;
84 + long int xds;
85 + long int xes;
86 + long int xfs;
87 + long int xgs;
88 + long int orig_eax;
89 + long int eip;
90 + long int xcs;
91 + long int eflags;
92 + long int esp;
93 + long int xss;
94 +};
96 +struct user
98 + struct user_regs_struct regs;
99 + int u_fpvalid;
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;
106 + long int signal;
107 + int reserved;
108 + struct user_regs_struct* u_ar0;
109 + struct user_fpregs_struct* u_fpstate;
110 + unsigned long int magic;
111 + char u_comm [32];
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
119 +#define UPAGES 1
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 */