debuggers.hg

annotate 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
rev   line source
ach61@2843 1 #ifndef _X86_64_REGS_H
ach61@2843 2 #define _X86_64_REGS_H
ach61@2843 3
kaf24@3635 4 #include <asm/types.h>
ach61@2843 5
kaf24@3635 6 struct xen_regs
kaf24@3635 7 {
kaf24@3635 8 u64 r15;
kaf24@3635 9 u64 r14;
kaf24@3635 10 u64 r13;
kaf24@3635 11 u64 r12;
kaf24@3635 12 u64 rbp;
kaf24@3635 13 u64 rbx;
kaf24@3635 14 u64 r11;
kaf24@3635 15 u64 r10;
kaf24@3635 16 u64 r9;
kaf24@3635 17 u64 r8;
kaf24@3635 18 u64 rax;
kaf24@3635 19 u64 rcx;
kaf24@3635 20 u64 rdx;
kaf24@3635 21 u64 rsi;
kaf24@3635 22 u64 rdi;
kaf24@3635 23 u32 error_code;
kaf24@3635 24 u32 entry_vector;
kaf24@3635 25 u64 rip;
kaf24@3635 26 u64 cs;
kaf24@3635 27 u64 eflags;
kaf24@3635 28 u64 rsp;
kaf24@3635 29 u64 ss;
kaf24@3635 30 } __attribute__ ((packed));
ach61@2843 31
kaf24@3635 32 #define VM86_MODE(_r) ((_r)->eflags & EF_VM)
kaf24@3635 33 #define RING_0(_r) (((_r)->cs & 3) == 0)
kaf24@3635 34 #define RING_1(_r) (((_r)->cs & 3) == 1)
kaf24@3635 35 #define RING_2(_r) (((_r)->cs & 3) == 2)
kaf24@3635 36 #define RING_3(_r) (((_r)->cs & 3) == 3)
ach61@2843 37
ach61@2843 38 #endif