[Bug 2171] New: new function for declaring a POSIX thread to be floating point or not via attribute

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Fri Feb 14 15:55:58 UTC 2014


https://www.rtems.org/bugzilla/show_bug.cgi?id=2171

             Bug #: 2171
           Summary: new function for declaring a POSIX thread to be
                    floating point or not via attribute
    Classification: Unclassified
           Product: RTEMS
           Version: 4.10
          Platform: All
        OS/Version: RTEMS
            Status: NEW
          Severity: enhancement
          Priority: P3
         Component: cpukit
        AssignedTo: joel.sherrill at oarcorp.com
        ReportedBy: steve.helmer at exelisinc.com


Created attachment 1558
  --> https://www.rtems.org/bugzilla/attachment.cgi?id=1558
sys/types.h header for newlib

For those processors which have a builtin floating point unit there needs to be
a way to specify whether or not posix threads (created with pthread_create)
need to to save/restore the floating point context during a context switch. 
This is already the case for RTEMS tasks.  I am submitting a patch for both
rtems-4.10.2 and newlib-1.19.0 to accommodate a new field is_fp to the 
pthread_attr_t structure declared in
newlib-1.19.0/newlib/libc/include/sys/types.h, declarations for 2 new functions
in newlib-1.19.0/newlib/libc/include/pthread.h.

And the functions themselves to be added to rtems-4.10.2/cpukit/posix/src.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list