Changeset 3900 for branches/libc-0.6


Ignore:
Timestamp:
Oct 22, 2014, 10:26:07 PM (11 years ago)
Author:
bird
Message:

trunk+0.6: Load default FPU.CW value in crt0 to avoid getting bitten by DLLs messing it up during static DLL initialization.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/libc-0.6/src/emx/src/lib/startup/386/crt0.s

    r2289 r3900  
    5353__text:
    5454
     55    /*
     56     * Fix the FPU control word since it may have been perverted by
     57     * statically imported DLLs.
     58     */
     59    fldcw   __crt0_fpucw
     60
    5561#if !defined(NOFORK) && !defined(NOUNIX)
    5662    /* Registering the fork module. If we're forking this call will not return. */
     
    88941:  jmp     1b      /* Just in case exit() returns :-) */
    8995
     96/** Initial FPU CW value. */
     97    .align  2, 0xcc
     98__crt0_fpucw:
     99    .long   0x37f
    90100
    91101    .data
Note: See TracChangeset for help on using the changeset viewer.