summaryrefslogtreecommitdiffhomepage
path: root/arch/nt64/bits
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-05-27 19:32:14 -0400
committermidipix <writeonce@midipix.org>2015-05-27 19:32:14 -0400
commita858f4f5bb28529bf9b3d86980b9aa442d60d91d (patch)
treee8d63dad6d6c0c9fc19f505f6e003a195c9d34f4 /arch/nt64/bits
parentafc9a8b6b543abbf75a891a64e8a92f3df267ad0 (diff)
downloadmmglue-a858f4f5bb28529bf9b3d86980b9aa442d60d91d.tar.bz2
mmglue-a858f4f5bb28529bf9b3d86980b9aa442d60d91d.tar.xz
define mcontext_t for the 64-bit midipix target.
signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information.
Diffstat (limited to 'arch/nt64/bits')
-rw-r--r--arch/nt64/bits/signal.h96
1 files changed, 95 insertions, 1 deletions
diff --git a/arch/nt64/bits/signal.h b/arch/nt64/bits/signal.h
index d06e9ff..ef03d91 100644
--- a/arch/nt64/bits/signal.h
+++ b/arch/nt64/bits/signal.h
@@ -7,7 +7,101 @@
#endif
typedef struct {
- unsigned long __space[32];
+ unsigned long uc_low;
+ signed long uc_high;
+} uc_m128a_t;
+
+typedef struct {
+ unsigned short uc_control_word; /* 0x000 */
+ unsigned short uc_status_word; /* 0x002 */
+ unsigned char uc_tag_word; /* 0x004 */
+ unsigned char uc_reserved1; /* 0x005 */
+ unsigned short uc_error_opcode; /* 0x006 */
+ unsigned int uc_error_offset; /* 0x008 */
+ unsigned short uc_error_selector; /* 0x00c */
+ unsigned short uc_reserved2; /* 0x00e */
+ unsigned int uc_data_offset; /* 0x010 */
+ unsigned short uc_data_selector; /* 0x014 */
+ unsigned short uc_reserved3; /* 0x016 */
+ unsigned int uc_mx_csr; /* 0x018 */
+ unsigned int uc_mx_csr_mask; /* 0x01c */
+ uc_m128a_t uc_float_registers[8]; /* 0x020 */
+ uc_m128a_t uc_xmm_registers[16]; /* 0x0a0 */
+ unsigned char uc_reserved4[96]; /* 0x1a0 */
+} uc_xsave_fmt_t;
+
+typedef struct {
+ unsigned long uc_p1_home; /* 0x000 */
+ unsigned long uc_p2_home; /* 0x008 */
+ unsigned long uc_p3_home; /* 0x010 */
+ unsigned long uc_p4_home; /* 0x018 */
+ unsigned long uc_p5_home; /* 0x020 */
+ unsigned long uc_p6_home; /* 0x028 */
+ unsigned int uc_context_flags; /* 0x030 */
+ unsigned int uc_mx_csr; /* 0x034 */
+ unsigned short uc_seg_cs; /* 0x038 */
+ unsigned short uc_seg_ds; /* 0x03a */
+ unsigned short uc_seg_es; /* 0x03c */
+ unsigned short uc_seg_fs; /* 0x03e */
+ unsigned short uc_seg_gs; /* 0x040 */
+ unsigned short uc_seg_ss; /* 0x042 */
+ unsigned int uc_eflags; /* 0x044 */
+ unsigned long uc_dr0; /* 0x048 */
+ unsigned long uc_dr1; /* 0x050 */
+ unsigned long uc_dr2; /* 0x058 */
+ unsigned long uc_dr3; /* 0x060 */
+ unsigned long uc_dr6; /* 0x068 */
+ unsigned long uc_dr7; /* 0x070 */
+ unsigned long uc_rax; /* 0x078 */
+ unsigned long uc_rcx; /* 0x080 */
+ unsigned long uc_rdx; /* 0x088 */
+ unsigned long uc_rbx; /* 0x090 */
+ unsigned long uc_rsp; /* 0x098 */
+ unsigned long uc_rbp; /* 0x0a0 */
+ unsigned long uc_rsi; /* 0x0a8 */
+ unsigned long uc_rdi; /* 0x0b0 */
+ unsigned long uc_r8; /* 0x0b8 */
+ unsigned long uc_r9; /* 0x0c0 */
+ unsigned long uc_r10; /* 0x0c8 */
+ unsigned long uc_r11; /* 0x0d0 */
+ unsigned long uc_r12; /* 0x0d8 */
+ unsigned long uc_r13; /* 0x0e0 */
+ unsigned long uc_r14; /* 0x0e8 */
+ unsigned long uc_r15; /* 0x0f0 */
+ unsigned long uc_rip; /* 0x0f8 */
+
+ union {
+ uc_xsave_fmt_t uc_flt_save; /* 0x100 */
+
+ struct {
+ uc_m128a_t uc_header[2]; /* 0x100 */
+ uc_m128a_t uc_legacy[8]; /* 0x120 */
+ } uc_hdr;
+ } uc_flt;
+
+ uc_m128a_t uc_xmm0; /* 0x1a0 */
+ uc_m128a_t uc_xmm1; /* 0x1b0 */
+ uc_m128a_t uc_xmm2; /* 0x1c0 */
+ uc_m128a_t uc_xmm3; /* 0x1d0 */
+ uc_m128a_t uc_xmm4; /* 0x1e0 */
+ uc_m128a_t uc_xmm5; /* 0x1f0 */
+ uc_m128a_t uc_xmm6; /* 0x200 */
+ uc_m128a_t uc_xmm7; /* 0x210 */
+ uc_m128a_t uc_xmm8; /* 0x220 */
+ uc_m128a_t uc_xmm9; /* 0x230 */
+ uc_m128a_t uc_xmm10; /* 0x240 */
+ uc_m128a_t uc_xmm11; /* 0x250 */
+ uc_m128a_t uc_xmm12; /* 0x260 */
+ uc_m128a_t uc_xmm13; /* 0x270 */
+ uc_m128a_t uc_xmm14; /* 0x280 */
+ uc_m128a_t uc_xmm15; /* 0x290 */
+ uc_m128a_t uc_vector_register[26]; /* 0x300 */
+ unsigned long uc_vector_control; /* 0x4a0 */
+ unsigned long uc_debug_control; /* 0x4a8 */
+ unsigned long uc_last_branch_to_rip; /* 0x4b0 */
+ unsigned long uc_last_branch_from_rip; /* 0x4b8 */
+ unsigned long uc_last_exception_to_rip; /* 0x4c0 */
+ unsigned long uc_last_exception_from_rip; /* 0x4c8 */
} mcontext_t;
struct sigaltstack {