Change RTEMS GCC Thread model to POSIX.

Gedare Bloom gedare at rtems.org
Mon Aug 12 13:41:03 UTC 2013


Is anything lost by going to POSIX threads in GCC?

On Fri, Aug 9, 2013 at 3:06 AM, Chris Johns <chrisj at rtems.org> wrote:
> 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.
>
> _______________________________________________
> rtems-devel mailing list
> rtems-devel at rtems.org
> http://www.rtems.org/mailman/listinfo/rtems-devel
>



More information about the devel mailing list