Ignore:
Timestamp:
Mar 9, 2017, 3:49:30 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
149d297
Parents:
5222605
Message:

Fixed saving and loading of control words for i386

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/invoke.c

    r5222605 r7b2c2c5f  
    9191        struct FakeStack {
    9292            void *fixedRegisters[3];                    // fixed registers ebx, edi, esi (popped on 1st uSwitch, values unimportant)
    93             void *rturn;                                      // where to go on return from uSwitch
     93            uint32_t mxcr;                              // SSE Status and Control bits (control bits are preserved across function calls)
     94            uint16_t fcw;                               // X97 FPU control word (preserved across function calls)
     95            void *rturn;                                // where to go on return from uSwitch
    9496            void *dummyReturn;                          // fake return compiler would have pushed on call to uInvoke
    9597            void *argument[3];                          // for 16-byte ABI, 16-byte alignment starts here
     
    108110      struct FakeStack {
    109111            void *fixedRegisters[5];                    // fixed registers rbx, r12, r13, r14, r15
    110             uint32_t mxcr;                                  // SSE Status and Control bits (control bits are preserved across function calls)
    111             uint16_t fcw;                                   // X97 FPU control word (preserved across function calls)
    112             void *rturn;                                      // where to go on return from uSwitch
     112            uint32_t mxcr;                              // SSE Status and Control bits (control bits are preserved across function calls)
     113            uint16_t fcw;                               // X97 FPU control word (preserved across function calls)
     114            void *rturn;                                // where to go on return from uSwitch
    113115            void *dummyReturn;                          // NULL return address to provide proper alignment
    114116      };
Note: See TracChangeset for help on using the changeset viewer.