debuggers.hg

view xen/include/asm-x86/x86_32/regs.h @ 3136:f1c44a4d4998

bitkeeper revision 1.1159.1.446 (41a48ee42Omqs3zoJHTZPhLlPx5LUw)

Merge arcadians.cl.cam.ac.uk:/auto/groups/xeno/BK/xen-unstable.bk
into arcadians.cl.cam.ac.uk:/auto/groups/xeno/users/cl349/BK/xen.bk-smp
author cl349@arcadians.cl.cam.ac.uk
date Wed Nov 24 13:38:44 2004 +0000 (2004-11-24)
parents 42bdac6c8985 2754a2ed61c3
children 91d462a4e723
line source
1 #ifndef _I386_REGS_H
2 #define _I386_REGS_H
4 struct xen_regs
5 {
6 /* All saved activations contain the following fields. */
7 u32 ebx;
8 u32 ecx;
9 u32 edx;
10 u32 esi;
11 u32 edi;
12 u32 ebp;
13 u32 eax;
14 u16 error_code;
15 u16 entry_vector;
16 u32 eip;
17 u32 cs;
18 u32 eflags;
20 /* Only saved guest activations contain the following fields. */
21 u32 esp;
22 u32 ss;
23 u32 es;
24 u32 ds;
25 u32 fs;
26 u32 gs;
27 } __attribute__ ((packed));
29 enum EFLAGS {
30 EF_CF = 0x00000001,
31 EF_PF = 0x00000004,
32 EF_AF = 0x00000010,
33 EF_ZF = 0x00000040,
34 EF_SF = 0x00000080,
35 EF_TF = 0x00000100,
36 EF_IE = 0x00000200,
37 EF_DF = 0x00000400,
38 EF_OF = 0x00000800,
39 EF_IOPL = 0x00003000,
40 EF_IOPL_RING0 = 0x00000000,
41 EF_IOPL_RING1 = 0x00001000,
42 EF_IOPL_RING2 = 0x00002000,
43 EF_NT = 0x00004000, /* nested task */
44 EF_RF = 0x00010000, /* resume */
45 EF_VM = 0x00020000, /* virtual mode */
46 EF_AC = 0x00040000, /* alignment */
47 EF_VIF = 0x00080000, /* virtual interrupt */
48 EF_VIP = 0x00100000, /* virtual interrupt pending */
49 EF_ID = 0x00200000, /* id */
50 };
52 #endif