Change RTEMS GCC Thread model to POSIX.

Chris Johns chrisj at rtems.org
Fri Aug 9 08:06:55 UTC 2013


Hi,

The patch attached changes the RTEMS thread model in GCC from 'rtems' to 
'posix'. The patch also fixes the include paths for newlib so the 
correct 'machine/_types.h' is picked up.

RTEMS using the POSIX thread model in gcc means C++ works with SMP. The 
'rtems' thread model uses an RTEMS specific interface to code in RTEMS 
that uses task variables. Task variables make no sense and will never 
work in SMP systems [1].

This patch leaves the RTEMS thread model in the gcc sources. A patch for 
gcc patches list would need to remove these sources.

Chris

[1] We should consider no building the task variable code when building 
an SMP kernel.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcc-rtems-thread-model-posix-1.diff
URL: <http://lists.rtems.org/pipermail/devel/attachments/20130809/192471cd/attachment.ksh>


More information about the devel mailing list