Ticket #11946: boost-mingw64-context.patch
File boost-mingw64-context.patch, 1.4 KB (added by , 7 years ago) |
---|
-
libs/context/src/asm/jump_x86_64_ms_pe_gas.asm
a b 176 176 177 177 2: 178 178 /* set offset of stack */ 179 movq 0xa8, %rcx179 movq $0xa8, %rcx 180 180 181 181 /* test for indicator */ 182 182 testq %r10, %r10 183 183 je 3f 184 184 185 addq 0x8, %rcx185 addq $0x8, %rcx 186 186 187 187 3: 188 188 /* prepare stack for FPU */ -
libs/context/src/asm/make_x86_64_ms_pe_gas.asm
a b 94 94 movq %rcx, %rax 95 95 96 96 /* reserve 32byte shadow-space for context-function */ 97 leaq -0x28(%rax), %rax97 subq $0x28, %rax 98 98 99 99 /* shift address in RAX to lower 16 byte boundary */ 100 100 /* == pointer to fcontext_t and address of context stack */ … … 103 103 /* reserve space for context-data on context-stack */ 104 104 /* size for fc_mxcsr .. RIP + return-address for context-function */ 105 105 /* on context-function entry: (RSP -0x8) % 16 == 0 */ 106 leaq -0x128(%rax), %rax106 subq $0x128, %rax 107 107 108 108 /* third arg of make_fcontext() == address of context-function */ 109 109 movq %r8, 0x118(%rax) … … 133 133 movq %rcx, 0x120(%rax) 134 134 135 135 /* set indicator */ 136 mov q1, %rcx136 mov $0x1, %rcx 137 137 movq %rcx, (%rax) 138 138 139 139 ret /* return pointer to context-data */