Blob


1 typedef struct Ureg Ureg;
2 struct Ureg
3 {
4 ulong di; /* general registers */
5 ulong si; /* ... */
6 ulong bp; /* ... */
7 ulong nsp;
8 ulong bx; /* ... */
9 ulong dx; /* ... */
10 ulong cx; /* ... */
11 ulong ax; /* ... */
12 ulong gs; /* data segments */
13 ulong fs; /* ... */
14 ulong es; /* ... */
15 ulong ds; /* ... */
16 ulong trap; /* trap type */
17 ulong ecode; /* error code (or zero) */
18 ulong pc; /* pc */
19 ulong cs; /* old context */
20 ulong flags; /* old flags */
21 ulong sp;
22 ulong ss; /* old stack segment */
23 };
25 typedef struct UregLinux386 UregLinux386;
26 struct UregLinux386
27 {
28 ulong ebx;
29 ulong ecx;
30 ulong edx;
31 ulong esi;
32 ulong edi;
33 ulong ebp;
34 ulong eax;
35 ulong xds;
36 ulong xes;
37 ulong xfs;
38 ulong xgs;
39 ulong origeax;
40 ulong eip;
41 ulong xcs;
42 ulong eflags;
43 ulong esp;
44 ulong xss;
45 };
47 Ureg *_linux2ureg386(UregLinux386*);