Opened 10 years ago
Closed 9 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)
Change History (2)
Changed 10 years ago by
Attachment: | fpucw.diff added |
---|
comment:1 Changed 9 years ago by
Milestone: | libc-0.7 → libc-0.6.6 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
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.
patch to initialize FPU CW at startup