debuggers.hg

view xen/include/asm-x86/x86_64/regs.h @ 3635:ed902e5c4b49

bitkeeper revision 1.1159.212.62 (41fff40aESe4aWS82z_rLHeonXpxuQ)

More x86/64 stuff.
Signed-off-by: keir.fraser@cl.cam.ac.uk
author kaf24@scramble.cl.cam.ac.uk
date Tue Feb 01 21:26:34 2005 +0000 (2005-02-01)
parents 61a55dee09d8
children 9a9c5a491401 e6af5d8f8b39 fd1dd0663b09
line source
1 #ifndef _X86_64_REGS_H
2 #define _X86_64_REGS_H
4 #include <asm/types.h>
6 struct xen_regs
7 {
8 u64 r15;
9 u64 r14;
10 u64 r13;
11 u64 r12;
12 u64 rbp;
13 u64 rbx;
14 u64 r11;
15 u64 r10;
16 u64 r9;
17 u64 r8;
18 u64 rax;
19 u64 rcx;
20 u64 rdx;
21 u64 rsi;
22 u64 rdi;
23 u32 error_code;
24 u32 entry_vector;
25 u64 rip;
26 u64 cs;
27 u64 eflags;
28 u64 rsp;
29 u64 ss;
30 } __attribute__ ((packed));
32 #define VM86_MODE(_r) ((_r)->eflags & EF_VM)
33 #define RING_0(_r) (((_r)->cs & 3) == 0)
34 #define RING_1(_r) (((_r)->cs & 3) == 1)
35 #define RING_2(_r) (((_r)->cs & 3) == 2)
36 #define RING_3(_r) (((_r)->cs & 3) == 3)
38 #endif