|
|
dd89bb |
#ifndef _NT_THREAD_X86_64_H_
|
|
|
dd89bb |
#define _NT_THREAD_X86_64_H_
|
|
|
dd89bb |
|
|
|
dd89bb |
typedef struct {
|
|
|
dd89bb |
uintptr_t uc_low;
|
|
|
dd89bb |
intptr_t uc_high;
|
|
|
dd89bb |
} nt_m128a_t;
|
|
|
dd89bb |
|
|
|
dd89bb |
typedef struct {
|
|
|
dd89bb |
uint16_t uc_control_word; /* 0x000 */
|
|
|
dd89bb |
uint16_t uc_status_word; /* 0x002 */
|
|
|
dd89bb |
uint8_t uc_tag_word; /* 0x004 */
|
|
|
dd89bb |
uint8_t uc_reserved1; /* 0x005 */
|
|
|
dd89bb |
uint16_t uc_error_opcode; /* 0x006 */
|
|
|
dd89bb |
uint32_t uc_error_offset; /* 0x008 */
|
|
|
dd89bb |
uint16_t uc_error_selector; /* 0x00c */
|
|
|
dd89bb |
uint16_t uc_reserved2; /* 0x00e */
|
|
|
dd89bb |
uint32_t uc_data_offset; /* 0x010 */
|
|
|
dd89bb |
uint16_t uc_data_selector; /* 0x014 */
|
|
|
dd89bb |
uint16_t uc_reserved3; /* 0x016 */
|
|
|
dd89bb |
uint32_t uc_mx_csr; /* 0x018 */
|
|
|
dd89bb |
uint32_t uc_mx_csr_mask; /* 0x01c */
|
|
|
dd89bb |
nt_m128a_t uc_float_registers[8]; /* 0x020 */
|
|
|
dd89bb |
} nt_xsave_fmt_t;
|
|
|
dd89bb |
|
|
|
dd89bb |
typedef struct {
|
|
|
dd89bb |
uintptr_t uc_p1_home; /* 0x000 */
|
|
|
dd89bb |
uintptr_t uc_p2_home; /* 0x008 */
|
|
|
dd89bb |
uintptr_t uc_p3_home; /* 0x010 */
|
|
|
dd89bb |
uintptr_t uc_p4_home; /* 0x018 */
|
|
|
dd89bb |
uintptr_t uc_p5_home; /* 0x020 */
|
|
|
dd89bb |
uintptr_t uc_p6_home; /* 0x028 */
|
|
|
dd89bb |
uint32_t uc_context_flags; /* 0x030 */
|
|
|
dd89bb |
uint32_t uc_mx_csr; /* 0x034 */
|
|
|
dd89bb |
uint16_t uc_seg_cs; /* 0x038 */
|
|
|
dd89bb |
uint16_t uc_seg_ds; /* 0x03a */
|
|
|
dd89bb |
uint16_t uc_seg_es; /* 0x03c */
|
|
|
dd89bb |
uint16_t uc_seg_fs; /* 0x03e */
|
|
|
dd89bb |
uint16_t uc_seg_gs; /* 0x040 */
|
|
|
dd89bb |
uint16_t uc_seg_ss; /* 0x042 */
|
|
|
dd89bb |
uint32_t uc_eflags; /* 0x044 */
|
|
|
dd89bb |
uintptr_t uc_dr0; /* 0x048 */
|
|
|
dd89bb |
uintptr_t uc_dr1; /* 0x050 */
|
|
|
dd89bb |
uintptr_t uc_dr2; /* 0x058 */
|
|
|
dd89bb |
uintptr_t uc_dr3; /* 0x060 */
|
|
|
dd89bb |
uintptr_t uc_dr6; /* 0x068 */
|
|
|
dd89bb |
uintptr_t uc_dr7; /* 0x070 */
|
|
|
dd89bb |
uintptr_t uc_rax; /* 0x078 */
|
|
|
dd89bb |
uintptr_t uc_rcx; /* 0x080 */
|
|
|
dd89bb |
uintptr_t uc_rdx; /* 0x088 */
|
|
|
dd89bb |
uintptr_t uc_rbx; /* 0x090 */
|
|
|
dd89bb |
uintptr_t uc_rsp; /* 0x098 */
|
|
|
dd89bb |
uintptr_t uc_rbp; /* 0x0a0 */
|
|
|
dd89bb |
uintptr_t uc_rsi; /* 0x0a8 */
|
|
|
dd89bb |
uintptr_t uc_rdi; /* 0x0b0 */
|
|
|
dd89bb |
uintptr_t uc_r8; /* 0x0b8 */
|
|
|
dd89bb |
uintptr_t uc_r9; /* 0x0c0 */
|
|
|
dd89bb |
uintptr_t uc_r10; /* 0x0c8 */
|
|
|
dd89bb |
uintptr_t uc_r11; /* 0x0d0 */
|
|
|
dd89bb |
uintptr_t uc_r12; /* 0x0d8 */
|
|
|
dd89bb |
uintptr_t uc_r13; /* 0x0e0 */
|
|
|
dd89bb |
uintptr_t uc_r14; /* 0x0e8 */
|
|
|
dd89bb |
uintptr_t uc_r15; /* 0x0f0 */
|
|
|
dd89bb |
uintptr_t uc_rip; /* 0x0f8 */
|
|
|
dd89bb |
|
|
|
dd89bb |
union {
|
|
|
dd89bb |
nt_xsave_fmt_t uc_flt_save; /* 0x100 */
|
|
|
dd89bb |
|
|
|
dd89bb |
struct {
|
|
|
dd89bb |
nt_m128a_t uc_header[2]; /* 0x100 */
|
|
|
dd89bb |
nt_m128a_t uc_legacy[8]; /* 0x120 */
|
|
|
dd89bb |
} uc_hdr;
|
|
|
dd89bb |
} uc_flt;
|
|
|
dd89bb |
|
|
|
dd89bb |
nt_m128a_t uc_xmm0; /* 0x1a0 */
|
|
|
dd89bb |
nt_m128a_t uc_xmm1; /* 0x1b0 */
|
|
|
dd89bb |
nt_m128a_t uc_xmm2; /* 0x1c0 */
|
|
|
dd89bb |
nt_m128a_t uc_xmm3; /* 0x1d0 */
|
|
|
dd89bb |
nt_m128a_t uc_xmm4; /* 0x1e0 */
|
|
|
dd89bb |
nt_m128a_t uc_xmm5; /* 0x1f0 */
|
|
|
dd89bb |
nt_m128a_t uc_xmm6; /* 0x200 */
|
|
|
dd89bb |
nt_m128a_t uc_xmm7; /* 0x210 */
|
|
|
dd89bb |
nt_m128a_t uc_xmm8; /* 0x220 */
|
|
|
dd89bb |
nt_m128a_t uc_xmm9; /* 0x230 */
|
|
|
dd89bb |
nt_m128a_t uc_xmm10; /* 0x240 */
|
|
|
dd89bb |
nt_m128a_t uc_xmm11; /* 0x250 */
|
|
|
dd89bb |
nt_m128a_t uc_xmm12; /* 0x260 */
|
|
|
dd89bb |
nt_m128a_t uc_xmm13; /* 0x270 */
|
|
|
dd89bb |
nt_m128a_t uc_xmm14; /* 0x280 */
|
|
|
dd89bb |
nt_m128a_t uc_xmm15; /* 0x290 */
|
|
|
dd89bb |
nt_m128a_t uc_vector_register[26]; /* 0x300 */
|
|
|
dd89bb |
uintptr_t uc_vector_control; /* 0x4a0 */
|
|
|
dd89bb |
uintptr_t uc_debug_control; /* 0x4a8 */
|
|
|
dd89bb |
uintptr_t uc_last_branch_to_rip; /* 0x4b0 */
|
|
|
dd89bb |
uintptr_t uc_last_branch_from_rip; /* 0x4b8 */
|
|
|
dd89bb |
uintptr_t uc_last_exception_to_rip; /* 0x4c0 */
|
|
|
dd89bb |
uintptr_t uc_last_exception_from_rip; /* 0x4c8 */
|
|
|
6c8592 |
uintptr_t uc_reserved[6]; /* 0x4d0 */
|
|
|
dd89bb |
} nt_mcontext_x86_64_t;
|
|
|
dd89bb |
|
|
|
dd89bb |
#endif
|