fix some symbol resolution issues in dynamic linker
[musl] / arch / x86_64 / bits / user.h
1 #undef __WORDSIZE
2 #define __WORDSIZE 32
3
4 struct user_fpregs_struct
5 {
6         long int cwd;
7         long int swd;
8         long int twd;
9         long int fip;
10         long int fcs;
11         long int foo;
12         long int fos;
13         long int st_space[20];
14 };
15
16 struct user_fpxregs_struct
17 {
18         unsigned short int cwd;
19         unsigned short int swd;
20         unsigned short int twd;
21         unsigned short int fop;
22         long int fip;
23         long int fcs;
24         long int foo;
25         long int fos;
26         long int mxcsr;
27         long int reserved;
28         long int st_space[32];
29         long int xmm_space[32];
30         long int padding[56];
31 };
32
33 struct user_regs_struct
34 {
35         long int ebx;
36         long int ecx;
37         long int edx;
38         long int esi;
39         long int edi;
40         long int ebp;
41         long int eax;
42         long int xds;
43         long int xes;
44         long int xfs;
45         long int xgs;
46         long int orig_eax;
47         long int eip;
48         long int xcs;
49         long int eflags;
50         long int esp;
51         long int xss;
52 };
53
54 struct user
55 {
56         struct user_regs_struct         regs;
57         int                             u_fpvalid;
58         struct user_fpregs_struct       i387;
59         unsigned long int               u_tsize;
60         unsigned long int               u_dsize;
61         unsigned long int               u_ssize;
62         unsigned long                   start_code;
63         unsigned long                   start_stack;
64         long int                        signal;
65         int                             reserved;
66         struct user_regs_struct         *u_ar0;
67         struct user_fpregs_struct       *u_fpstate;
68         unsigned long int               magic;
69         char                            u_comm[32];
70         int                             u_debugreg[8];
71 };
72
73 #define PAGE_MASK               (~(PAGE_SIZE-1))
74 #define NBPG                    PAGE_SIZE
75 #define UPAGES                  1
76 #define HOST_TEXT_START_ADDR    (u.start_code)
77 #define HOST_STACK_END_ADDR     (u.start_stack + u.u_ssize * NBPG)