Ticket #11946: boost-mingw64-context.patch

File boost-mingw64-context.patch, 1.4 KB (added by tomasz.wlostowski@…, 7 years ago)
  • libs/context/src/asm/jump_x86_64_ms_pe_gas.asm

    a b  
    176176
    1771772:
    178178    /* set offset of stack */
    179     movq  0xa8, %rcx
     179    movq  $0xa8, %rcx
    180180
    181181    /* test for indicator */
    182182    testq  %r10, %r10
    183183    je  3f
    184184
    185     addq  0x8, %rcx
     185    addq  $0x8, %rcx
    186186
    1871873:
    188188    /* prepare stack for FPU */
  • libs/context/src/asm/make_x86_64_ms_pe_gas.asm

    a b  
    9494    movq  %rcx, %rax
    9595
    9696    /* reserve 32byte shadow-space for context-function */
    97     leaq  -0x28(%rax), %rax
     97    subq  $0x28, %rax
    9898
    9999    /* shift address in RAX to lower 16 byte boundary */
    100100    /* == pointer to fcontext_t and address of context stack */
     
    103103    /* reserve space for context-data on context-stack */
    104104    /* size for fc_mxcsr .. RIP + return-address for context-function */
    105105    /* on context-function entry: (RSP -0x8) % 16 == 0 */
    106     leaq  -0x128(%rax), %rax
     106    subq  $0x128, %rax
    107107
    108108    /* third arg of make_fcontext() == address of context-function */
    109109    movq  %r8, 0x118(%rax)
     
    133133    movq  %rcx, 0x120(%rax)
    134134
    135135    /* set indicator */
    136     mov1, %rcx
     136    mov  $0x1, %rcx
    137137    movq  %rcx, (%rax)
    138138
    139139    ret /* return pointer to context-data */