Re: [PATCH 07/17] score: Delete post-switch API extensions

2014-03-25 Thread Gedare Bloom
OK to these patches. I like this consolidation very nice. On Tue, Mar 25, 2014 at 8:49 AM, Sebastian Huber wrote: > Use thread post-switch actions instead. > --- > cpukit/score/include/rtems/score/apiext.h | 64 > - > cpukit/score/src/apiext.c | 1

Re: [PATCH 04/17] score: Add thread actions

2014-03-25 Thread Sebastian Huber
On 2014-03-25 16:36, Gedare Bloom wrote: On Tue, Mar 25, 2014 at 8:49 AM, Sebastian Huber wrote: Thread actions are the building block for efficient implementation of - Classic signals delivery, - POSIX signals delivery, - thread restart notification, - thread delete notification,

Re: [PATCH 04/17] score: Add thread actions

2014-03-25 Thread Gedare Bloom
On Tue, Mar 25, 2014 at 11:36 AM, Gedare Bloom wrote: > On Tue, Mar 25, 2014 at 8:49 AM, Sebastian Huber > wrote: >> Thread actions are the building block for efficient implementation of >> - Classic signals delivery, >> - POSIX signals delivery, >> - thread restart notification, >> - thr

Re: [PATCH 04/17] score: Add thread actions

2014-03-25 Thread Gedare Bloom
On Tue, Mar 25, 2014 at 8:49 AM, Sebastian Huber wrote: > Thread actions are the building block for efficient implementation of > - Classic signals delivery, > - POSIX signals delivery, > - thread restart notification, > - thread delete notification, > - forced thread migration on SMP co

RTEMS 4.11 release and open bugs

2014-03-25 Thread Sebastian Huber
Hello, before we release RTEMS 4.11 we should add the next release to the Bugzilla and move the target milestone of all open bugs to this release if we don't want to fix them for RTEMS 4.11. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone :

Re: [PATCH 01/17] score: PR2151: _Thread_queue_Extract_with_proxy()

2014-03-25 Thread Gedare Bloom
Ok On Tue, Mar 25, 2014 at 8:49 AM, Sebastian Huber wrote: > Avoid NULL pointer access. > --- > cpukit/score/src/threadqextractwithproxy.c | 37 ++- > 1 files changed, 19 insertions(+), 18 deletions(-) > > diff --git a/cpukit/score/src/threadqextractwithproxy.c > b/cpu

Re: [PATCH 03/17] score: Add and use thread get/set CPU functions

2014-03-25 Thread Gedare Bloom
Ok On Tue, Mar 25, 2014 at 8:49 AM, Sebastian Huber wrote: > --- > cpukit/libmisc/cpuuse/cpuusagereport.c |4 ++- > .../score/include/rtems/score/schedulersmpimpl.h |6 ++-- > cpukit/score/include/rtems/score/threadimpl.h | 28 > +++- > cpukit/score/

[PATCH 08/17] score: Use thread action for thread restart

2014-03-25 Thread Sebastian Huber
The thread restart is now supported on SMP. New test smptests/smpthreadlife01. --- cpukit/rtems/src/taskrestart.c | 10 +-- cpukit/score/include/rtems/score/objectimpl.h | 17 --- cpukit/score/include/rtems/score/thread.h |5 + cpukit/score/include/rtems/

[PATCH 13/17] score: Replace _Thread_Reset()

2014-03-25 Thread Sebastian Huber
Replace _Thread_Reset() with _Thread_Start_life_change(). This function can be later used for the _Thread_Close() implementation. --- cpukit/score/src/threadrestart.c | 41 - 1 files changed, 18 insertions(+), 23 deletions(-) diff --git a/cpukit/score/src/th

[PATCH 12/17] score: Add parameter to _Thread_Restart()

2014-03-25 Thread Sebastian Huber
The executing thread will be later used for a common implementation with _Thread_Close(). --- cpukit/rtems/src/taskrestart.c|2 +- cpukit/score/include/rtems/score/threadimpl.h | 10 +- cpukit/score/src/threadrestart.c | 11 +-- 3 files changed,

[PATCH 10/17] score: Reduce _Thread_Reset() parameters

2014-03-25 Thread Sebastian Huber
Move thread entry parameters out of _Thread_Reset() to enable re-usablity of this function. --- cpukit/score/src/threadrestart.c | 26 +++--- 1 files changed, 7 insertions(+), 19 deletions(-) diff --git a/cpukit/score/src/threadrestart.c b/cpukit/score/src/threadrestart.c in

[PATCH 04/17] score: Add thread actions

2014-03-25 Thread Sebastian Huber
Thread actions are the building block for efficient implementation of - Classic signals delivery, - POSIX signals delivery, - thread restart notification, - thread delete notification, - forced thread migration on SMP configurations, and - the Multiprocessor Resource Sharing Protocol (M

[PATCH 14/17] score: Thread life cycle re-implementation

2014-03-25 Thread Sebastian Huber
The thread deletion is now supported on SMP. This change fixes the following PRs: PR1814: SMP race condition between stack free and dispatch PR2035: psxcancel reveals NULL pointer access in _Thread_queue_Extract() The POSIX cleanup handler are now called in the right context (should be called i

[PATCH 15/17] score: Relax Giant lock usage for API mutexes

2014-03-25 Thread Sebastian Huber
It is no longer necessary to protect the workspace allocations with the Giant lock due to the thread life cycle re-implementation. --- cpukit/posix/src/pthread.c|2 +- cpukit/score/src/apimutexlock.c |4 cpukit/score/src/apimutexunlock.c |5 + 3 files changed, 6 inse

[PATCH 07/17] score: Delete post-switch API extensions

2014-03-25 Thread Sebastian Huber
Use thread post-switch actions instead. --- cpukit/score/include/rtems/score/apiext.h | 64 - cpukit/score/src/apiext.c | 11 - cpukit/score/src/threaddispatch.c |1 - 3 files changed, 0 insertions(+), 76 deletions(-) diff --git a/cp

[PATCH 01/17] score: PR2151: _Thread_queue_Extract_with_proxy()

2014-03-25 Thread Sebastian Huber
Avoid NULL pointer access. --- cpukit/score/src/threadqextractwithproxy.c | 37 ++- 1 files changed, 19 insertions(+), 18 deletions(-) diff --git a/cpukit/score/src/threadqextractwithproxy.c b/cpukit/score/src/threadqextractwithproxy.c index a0bf5b3..f1c1949 100644 ---

[PATCH 06/17] posix: Use thread action for signals

2014-03-25 Thread Sebastian Huber
--- cpukit/posix/include/rtems/posix/psignalimpl.h | 12 ++-- cpukit/posix/include/rtems/posix/threadsup.h |5 + cpukit/posix/src/killinfo.c|2 -- cpukit/posix/src/psignal.c | 23 ++- cpukit/posix/src/psignalunbl

[PATCH 11/17] score: Fix thread restart extensions context

2014-03-25 Thread Sebastian Huber
Run the thread restart extensions in the context of the restarted thread. Run them with thread dispatching enabled. --- cpukit/posix/src/pthread.c | 11 +++- cpukit/score/include/rtems/score/userext.h |9 ++- cpukit/score/src/threadrestart.c |4 +- testsuites/p

[PATCH 02/17] score: Add _Scheduler_Highest_priority_of_two()

2014-03-25 Thread Sebastian Huber
--- cpukit/score/include/rtems/score/schedulerimpl.h |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/cpukit/score/include/rtems/score/schedulerimpl.h b/cpukit/score/include/rtems/score/schedulerimpl.h index 7fbaf54..1cc478b 100644 --- a/cpukit/score/include/rtems/s

Thread Life Cycle Re-Implementation

2014-03-25 Thread Sebastian Huber
The primary objective of this change set is support for thread restart and delete on SMP configurations. It enables also forced thread migration. For background information please have a look at: http://www.rtems.org/wiki/index.php?title=SMP#Thread_Restart http://www.rtems.org/wiki/index.php?ti

[PATCH 05/17] rtems: Use thread action for signals

2014-03-25 Thread Sebastian Huber
--- cpukit/rtems/include/rtems/rtems/signalimpl.h |8 cpukit/rtems/include/rtems/rtems/tasks.h |6 ++ cpukit/rtems/src/signalcatch.c| 20 +++- cpukit/rtems/src/signalsend.c |4 cpukit/rtems/src/taskmode.c

[PATCH 09/17] score: Move _Thread_Reset() and make static

2014-03-25 Thread Sebastian Huber
--- cpukit/score/Makefile.am |2 +- cpukit/score/include/rtems/score/threadimpl.h | 17 - cpukit/score/src/threadreset.c| 49 - cpukit/score/src/threadrestart.c | 28 ++ 4 files changed, 29 inse

[PATCH 16/17] score: Use thread life protection for API mutexes

2014-03-25 Thread Sebastian Huber
This prevents that asynchronous thread deletion can lead to an unusable allocator or once mutex. --- .../arm/altera-cyclone-v/startup/nocache-heap.c| 10 ++-- c/src/lib/libbsp/shared/src/irq-generic.c | 47 ++--- cpukit/libcsupport/src/malloc_get_statistics.c |

[PATCH 03/17] score: Add and use thread get/set CPU functions

2014-03-25 Thread Sebastian Huber
--- cpukit/libmisc/cpuuse/cpuusagereport.c |4 ++- .../score/include/rtems/score/schedulersmpimpl.h |6 ++-- cpukit/score/include/rtems/score/threadimpl.h | 28 +++- cpukit/score/src/schedulersmpstartidle.c |2 +- cpukit/score/src/threadin

Re: [PATCH 01/10] score: Add get/set affinity to Scheduler Framework.

2014-03-25 Thread Gedare Bloom
On Tue, Mar 25, 2014 at 3:20 AM, Sebastian Huber wrote: > On 2014-03-24 19:39, Jennifer wrote: >> >> @@ -184,6 +205,43 @@ void _Scheduler_default_Start_idle( >> Per_CPU_Control *processor >> ); >> >> +#if defined(__RTEMS_HAVE_SYS_CPUSET_H__) && defined(RTEMS_SMP) >> + >> + /** >> + * @bri

Re: sis ticker.exe now faults during rtems_task_delete

2014-03-25 Thread Sebastian Huber
On 2014-03-24 19:26, Joel Sherrill wrote: Hi Looks like the TLS pointer is NULL and when _Thread_Close eventually calls _Object_Free, it appears to trip the fault. I am done for the night. :) Sorry, this commit is the problem: http://git.rtems.org/rtems/commit/?id=2a713e3b944625c45154f0ea7f

Re: RSB and C++ Model

2014-03-25 Thread Chris Johns
On 25/03/2014 5:16 pm, Joel Sherrill wrote: On 3/24/2014 11:29 PM, Chris Johns wrote: On 25/03/2014 4:41 am, Joel Sherrill wrote: On 3/24/2014 12:36 PM, Sebastian Huber wrote: On 03/24/2014 06:14 PM, Joel Sherrill wrote: Hi My most recently built toolset seems to be using pthreads instead o

Re: [PATCH 01/10] score: Add get/set affinity to Scheduler Framework.

2014-03-25 Thread Sebastian Huber
On 2014-03-24 19:39, Jennifer wrote: @@ -184,6 +205,43 @@ void _Scheduler_default_Start_idle( Per_CPU_Control *processor ); +#if defined(__RTEMS_HAVE_SYS_CPUSET_H__) && defined(RTEMS_SMP) + + /** + * @brief Get affinity for the default scheduler. + * + * @param[in] thread The associ