Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1207)

Side by Side Diff: fusl/arch/i386/bits/user.h

Issue 1573973002: Add a "fork" of musl as //fusl. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « fusl/arch/i386/bits/termios.h ('k') | fusl/arch/i386/crt_arch.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #undef __WORDSIZE
2 #define __WORDSIZE 32
3
4 typedef struct user_fpregs_struct
5 {
6 long cwd, swd, twd, fip, fcs, foo, fos, st_space[20];
7 } elf_fpregset_t;
8
9 typedef struct user_fpxregs_struct
10 {
11 unsigned short cwd, swd, twd, fop;
12 long fip, fcs, foo, fos, mxcsr, reserved;
13 long st_space[32], xmm_space[32], padding[56];
14 } elf_fpxregset_t;
15
16 struct user_regs_struct
17 {
18 long ebx, ecx, edx, esi, edi, ebp, eax, xds, xes, xfs, xgs;
19 long orig_eax, eip, xcs, eflags, esp, xss;
20 };
21
22 #define ELF_NGREG 17
23 typedef unsigned long elf_greg_t, elf_gregset_t[ELF_NGREG];
24
25 struct user
26 {
27 struct user_regs_struct regs;
28 int u_fpvalid;
29 struct user_fpregs_struct i387;
30 unsigned long u_tsize;
31 unsigned long u_dsize;
32 unsigned long u_ssize;
33 unsigned long start_code;
34 unsigned long start_stack;
35 long signal;
36 int reserved;
37 struct user_regs_struct *u_ar0;
38 struct user_fpregs_struct *u_fpstate;
39 unsigned long magic;
40 char u_comm[32];
41 int u_debugreg[8];
42 };
43
44 #define PAGE_MASK (~(PAGE_SIZE-1))
45 #define NBPG PAGE_SIZE
46 #define UPAGES 1
47 #define HOST_TEXT_START_ADDR (u.start_code)
48 #define HOST_STACK_END_ADDR (u.start_stack + u.u_ssize * NBPG)
OLDNEW
« no previous file with comments | « fusl/arch/i386/bits/termios.h ('k') | fusl/arch/i386/crt_arch.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698