Ticket #12719: boost-1.63.0-fix-context.patch

File boost-1.63.0-fix-context.patch, 2.1 KB (added by p.remmers@…, 6 years ago)

add missing instructions to asm

  • boost_1_63_0/libs/context/src/asm/jump_x86_64_ms_pe_gas.asm

    old new  
    143143    /* restore RSP (pointing to context-data) from RDX */
    144144    movq  %rdx, %rsp
    145145
    146     /* save XMM storage */
     146    /* restore XMM storage */
    147147    movaps  0x0(%rsp), %xmm6
    148148    movaps  0x10(%rsp), %xmm7
    149149    movaps  0x20(%rsp), %xmm8
     
    154154    movaps  0x70(%rsp), %xmm13
    155155    movaps  0x80(%rsp), %xmm14
    156156    movaps  0x90(%rsp), %xmm15
     157    /* restore MMX control- and status-word */
     158    ldmxcsr  0xa0(%rsp)
     159    /* restore x87 control-word */
     160    fldcw   0xa4(%rsp)
    157161
    158162    /* load NT_TIB */
    159163    movq  %gs:(0x30), %r10
     
    179183    movq  0x100(%rsp), %rbx  /* restore RBX */
    180184    movq  0x108(%rsp), %rbp  /* restore RBP */
    181185
    182     movq  0x110(%rsp), %rcx  /* restore hidden address of transport_t */
     186    movq  0x110(%rsp), %rax  /* restore hidden address of transport_t */
    183187
    184188    leaq  0x118(%rsp), %rsp /* prepare stack */
    185189
  • boost_1_63_0/libs/context/src/asm/ontop_x86_64_ms_pe_gas.asm

    old new  
    143143    /* restore RSP (pointing to context-data) from RDX */
    144144    movq  %rdx, %rsp
    145145
    146     /* save XMM storage */
     146    /* restore XMM storage */
    147147    movaps  0x0(%rsp), %xmm6
    148148    movaps  0x10(%rsp), %xmm7
    149149    movaps  0x20(%rsp), %xmm8
     
    154154    movaps  0x70(%rsp), %xmm13
    155155    movaps  0x80(%rsp), %xmm14
    156156    movaps  0x90(%rsp), %xmm15
     157    /* restore MMX control- and status-word */
     158    ldmxcsr  0xa0(%rsp)
     159    /* restore x87 control-word */
     160    fldcw   0xa4(%rsp)
    157161
    158162    /* load NT_TIB */
    159163    movq  %gs:(0x30), %r10
     
    179183    movq  0x100(%rsp), %rbx  /* restore RBX */
    180184    movq  0x108(%rsp), %rbp  /* restore RBP */
    181185
    182     movq  0x110(%rsp), %rcx  /* restore hidden address of transport_t */
     186    movq  0x110(%rsp), %rax  /* restore hidden address of transport_t */
    183187
    184188    leaq  0x118(%rsp), %rsp /* prepare stack */
    185189