Opened 5 years ago

Closed 5 years ago

#312 closed defect (fixed)

FPU control word is altered at startup

Reported by: KO Myung-Hun Owned by:
Priority: normal Milestone: libc-0.6.6
Component: libc Version: 0.6.5
Severity: normal Keywords:
Cc:

Description

Hi/2.

It is well known that some dlls alter FPU CW but do not restore it. So if those dlls are imported, FPU CW is altered at startup. This may cause SIGFPE later. To prevent this, it's good to initialize FPU CW at startup.

Attachments (1)

fpucw.diff (465 bytes) - added by KO Myung-Hun 5 years ago.
patch to initialize FPU CW at startup

Download all attachments as: .zip

Change History (2)

Changed 5 years ago by KO Myung-Hun

Attachment: fpucw.diff added

patch to initialize FPU CW at startup

comment:1 Changed 5 years ago by bird

Milestone: libc-0.7libc-0.6.6
Resolution: fixed
Status: newclosed

Great idea! I'd like to have it in the crt0 assembly code, though. Implemented this in r3900 (untested).

Note: See TracTickets for help on using tickets.