aboutsummaryrefslogtreecommitdiff
path: root/src/libmach/ureg386.h
blob: 961ef6d093d7b18d1c04e721dfdfbde3294a6c72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
typedef struct Ureg Ureg;
struct Ureg
{
	ulong	di;		/* general registers */
	ulong	si;		/* ... */
	ulong	bp;		/* ... */
	ulong	nsp;
	ulong	bx;		/* ... */
	ulong	dx;		/* ... */
	ulong	cx;		/* ... */
	ulong	ax;		/* ... */
	ulong	gs;		/* data segments */
	ulong	fs;		/* ... */
	ulong	es;		/* ... */
	ulong	ds;		/* ... */
	ulong	trap;		/* trap type */
	ulong	ecode;		/* error code (or zero) */
	ulong	pc;		/* pc */
	ulong	cs;		/* old context */
	ulong	flags;		/* old flags */
	ulong	sp;
	ulong	ss;		/* old stack segment */
};

typedef struct UregLinux386 UregLinux386;
struct UregLinux386
{
	ulong	ebx;
	ulong	ecx;
	ulong	edx;
	ulong	esi;
	ulong	ebp;
	ulong	eax;
	ulong	xds;
	ulong	xes;
	ulong	xfs;
	ulong	xgs;
	ulong	origeax;
	ulong	eip;
	ulong	xcs;
	ulong	eflags;
	ulong	esp;
	ulong	xss;
};