Changeset 8808


Ignore:
Timestamp:
Mar 17, 2008, 7:14:32 AM (12 years ago)
Author:
gb
Message:

Make WIN64 REG* constants relative to offset of first GPR (Rax) in CONTEXT.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/win64/lisp-kernel/x86-constants64.h

    r8547 r8808  
    5858
    5959#ifdef WIN64
    60 /* DWORD64 indices in CONTEXT */
    61 #define REG_RAX     15
    62 #define REG_RCX     16
    63 #define REG_RDX     17
    64 #define REG_RBX     18
    65 #define REG_RSP     19
    66 #define REG_RBP     20
    67 #define REG_RSI     21
    68 #define REG_RDI     22
    69 #define REG_R8      23
    70 #define REG_R9      24
    71 #define REG_R10     25
    72 #define REG_R11     26
    73 #define REG_R12     27
    74 #define REG_R13     28
    75 #define REG_R14     29
    76 #define REG_R15     30
    77 #define REG_RIP     31
    78 #define REG_EFL      8  /* In the high 32 bits of the 64-bit word at index 8 */
     60/* DWORD64 indices in &(CONTEXT->Rax) */
     61#define REG_RAX     0
     62#define REG_RCX     1
     63#define REG_RDX     2
     64#define REG_RBX     3
     65#define REG_RSP     4
     66#define REG_RBP     5
     67#define REG_RSI     6
     68#define REG_RDI     7
     69#define REG_R8      8
     70#define REG_R9      9
     71#define REG_R10     10
     72#define REG_R11     11
     73#define REG_R12     12
     74#define REG_R13     13
     75#define REG_R14     14
     76#define REG_R15     15
     77#define REG_RIP     16
    7978#endif
    8079/* Define indices of the GPRs in the mcontext component of a ucontext */
Note: See TracChangeset for help on using the changeset viewer.