Re: RSB and C++ Model

2014-03-24 Thread Joel Sherrill
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 of the RTEMS thread cod

Re: [rtems commit] librpc: Use POSIX key instead of task variables

2014-03-24 Thread Chris Johns
On 25/03/2014 5:02 am, Joel Sherrill wrote: On 3/24/2014 12:56 PM, Sebastian Huber wrote: On 03/24/2014 06:39 PM, Joel Sherrill wrote: On 3/24/2014 12:34 PM, Sebastian Huber wrote: Hello Joel, On 03/24/2014 05:59 PM, Joel Sherrill wrote: Grep'ing to see what was left, I see two things: + p

Re: RSB and C++ Model

2014-03-24 Thread Chris Johns
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 of the RTEMS thread code. Any ideas? Its due to this patch: http://git.rtems.org/rtems

Re: [PATCH 07/10] posix: Move affinity from thread to scheduler.

2014-03-24 Thread Gedare Bloom
On Mon, Mar 24, 2014 at 2:39 PM, Jennifer wrote: > From: Jennifer Averett > > --- > cpukit/posix/src/pthreadcreate.c| 14 -- > cpukit/posix/src/pthreadgetaffinitynp.c | 12 +--- > cpukit/posix/src/pthreadsetaffinitynp.c | 8 ++-- > 3 files changed, 23 insertions(

Re: [PATCH 02/10] score: Add priority affinity smp scheduler.

2014-03-24 Thread Gedare Bloom
On Mon, Mar 24, 2014 at 2:39 PM, Jennifer wrote: > From: Jennifer Averett > > --- > cpukit/score/Makefile.am | 2 + > .../rtems/score/schedulerpriorityaffinitysmp.h | 144 > + > cpukit/score/preinstall.am | 4 + > cpu

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

2014-03-24 Thread Gedare Bloom
On Mon, Mar 24, 2014 at 2:39 PM, Jennifer wrote: > From: Jennifer Averett > > --- > cpukit/score/Makefile.am | 2 + > cpukit/score/include/rtems/score/scheduler.h | 58 > ++ > cpukit/score/include/rtems/score/schedulerimpl.h | 32 ++

[PATCH 03/10] score: Remove affinity element from thread.

2014-03-24 Thread Jennifer
From: Jennifer Averett --- cpukit/score/include/rtems/score/thread.h | 10 -- cpukit/score/src/threadinitialize.c | 4 2 files changed, 14 deletions(-) diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h index 3dc423f..23b2687

[PATCH 05/10] rtems: Move affinity from thread to scheduler.

2014-03-24 Thread Jennifer
From: Jennifer Averett --- cpukit/rtems/src/taskgetaffinity.c | 6 +++--- cpukit/rtems/src/tasksetaffinity.c | 6 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/cpukit/rtems/src/taskgetaffinity.c b/cpukit/rtems/src/taskgetaffinity.c index 041eb27..eda39e4 100644 --- a/cpu

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

2014-03-24 Thread Jennifer
From: Jennifer Averett --- cpukit/score/Makefile.am | 2 + cpukit/score/include/rtems/score/scheduler.h | 58 ++ cpukit/score/include/rtems/score/schedulerimpl.h | 32 .../score/include/rtems/score/schedulerpriority.h | 11 +++-

[PATCH 08/10] smppsxaffinity02: Use Priority Affinity SMP scheduler.

2014-03-24 Thread Jennifer
From: Jennifer Averett --- testsuites/smptests/smppsxaffinity02/init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/testsuites/smptests/smppsxaffinity02/init.c b/testsuites/smptests/smppsxaffinity02/init.c index c5b5f4d..7916e60 100644 --- a/testsuites/smptests/smppsxaffinity02/init.c ++

[PATCH 10/10] smpaffinity01: Use Priority Affinity SMP scheduler.

2014-03-24 Thread Jennifer
From: Jennifer Averett --- testsuites/smptests/smpaffinity01/init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testsuites/smptests/smpaffinity01/init.c b/testsuites/smptests/smpaffinity01/init.c index 7e9ef53..cc5f321 100644 --- a/testsuites/smptests/smpaffinity01/ini

[PATCH 09/10] smppsxaffinity01: Use Priority Affinity SMP scheduler.

2014-03-24 Thread Jennifer
From: Jennifer Averett --- testsuites/smptests/smppsxaffinity01/init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/testsuites/smptests/smppsxaffinity01/init.c b/testsuites/smptests/smppsxaffinity01/init.c index ebaf2e9..5485149 100644 --- a/testsuites/smptests/smppsxaffinity01/init.c ++

[PATCH 06/10] posix: Modified pthread init to use cpuset default.

2014-03-24 Thread Jennifer
From: Jennifer Averett --- cpukit/posix/src/pthread.c | 20 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c index 7968f17..41115ff 100644 --- a/cpukit/posix/src/pthread.c +++ b/cpukit/posix/src/pthread.c

[PATCH 04/10] sapi: Add priority affinity smp scheduler.

2014-03-24 Thread Jennifer
From: Jennifer Averett --- cpukit/sapi/include/confdefs.h | 22 ++ 1 file changed, 22 insertions(+) diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index aca99f0..e784a40 100644 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confd

[PATCH 07/10] posix: Move affinity from thread to scheduler.

2014-03-24 Thread Jennifer
From: Jennifer Averett --- cpukit/posix/src/pthreadcreate.c| 14 -- cpukit/posix/src/pthreadgetaffinitynp.c | 12 +--- cpukit/posix/src/pthreadsetaffinitynp.c | 8 ++-- 3 files changed, 23 insertions(+), 11 deletions(-) diff --git a/cpukit/posix/src/pthreadcreat

[PATCH 02/10] score: Add priority affinity smp scheduler.

2014-03-24 Thread Jennifer
From: Jennifer Averett --- cpukit/score/Makefile.am | 2 + .../rtems/score/schedulerpriorityaffinitysmp.h | 144 + cpukit/score/preinstall.am | 4 + cpukit/score/src/schedulerpriorityaffinitysmp.c| 95

sis ticker.exe now faults during rtems_task_delete

2014-03-24 Thread Joel Sherrill
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. :) -- Joel Sherrill, Ph.D. Director of Research & Development joel.sherr...@oarcorp.comOn-Line Applications Research Ask me abou

Re: [rtems commit] librpc: Use POSIX key instead of task variables

2014-03-24 Thread Joel Sherrill
On 3/24/2014 12:56 PM, Sebastian Huber wrote: > On 03/24/2014 06:39 PM, Joel Sherrill wrote: >> On 3/24/2014 12:34 PM, Sebastian Huber wrote: Hello Joel, On 03/24/2014 05:59 PM, Joel Sherrill wrote: >> Grep'ing to see what was left, I see two things: >> >> + privateenv.c

Re: [rtems commit] librpc: Use POSIX key instead of task variables

2014-03-24 Thread Sebastian Huber
On 03/24/2014 06:39 PM, Joel Sherrill wrote: On 3/24/2014 12:34 PM, Sebastian Huber wrote: >Hello Joel, > >On 03/24/2014 05:59 PM, Joel Sherrill wrote: >>Grep'ing to see what was left, I see two things: >> >>+ privateenv.c >what is your opinion on removing rtems_libio_share_private_env()? Not

Re: RSB and C++ Model

2014-03-24 Thread Joel Sherrill
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 >> of the RTEMS thread code. Any ideas? >> > Its due to this patch: > > http://git.rtems.org/rtems-tools/tree/tools/4.11/gcc/gc

Re: [rtems commit] librpc: Use POSIX key instead of task variables

2014-03-24 Thread Joel Sherrill
On 3/24/2014 12:34 PM, Sebastian Huber wrote: > Hello Joel, > > On 03/24/2014 05:59 PM, Joel Sherrill wrote: >> Grep'ing to see what was left, I see two things: >> >> + privateenv.c > what is your opinion on removing rtems_libio_share_private_env()? Not sure. > http://www.rtems.org/pipermail/rtems

Re: RSB and C++ Model

2014-03-24 Thread Sebastian Huber
On 03/24/2014 06:14 PM, Joel Sherrill wrote: Hi My most recently built toolset seems to be using pthreads instead of the RTEMS thread code. Any ideas? Its due to this patch: http://git.rtems.org/rtems-tools/tree/tools/4.11/gcc/gcc-rtems-thread-model-posix-1.diff We should really avoid using

Re: [rtems commit] librpc: Use POSIX key instead of task variables

2014-03-24 Thread Sebastian Huber
Hello Joel, On 03/24/2014 05:59 PM, Joel Sherrill wrote: Grep'ing to see what was left, I see two things: + privateenv.c what is your opinion on removing rtems_libio_share_private_env()? http://www.rtems.org/pipermail/rtems-devel/2014-March/006134.html This would dramatically simplify the i

RSB and C++ Model

2014-03-24 Thread Joel Sherrill
Hi My most recently built toolset seems to be using pthreads instead of the RTEMS thread code. Any ideas? -- Joel Sherrill, Ph.D. Director of Research & Development joel.sherr...@oarcorp.comOn-Line Applications Research Ask me about RTEMS: a free RTOS Huntsville AL 35805 Sup

Re: [rtems commit] librpc: Use POSIX key instead of task variables

2014-03-24 Thread Joel Sherrill
Grep'ing to see what was left, I see two things: + privateenv.c + rpc used task_variable in the names of its types and data. Should that be changed? --joel On 3/24/2014 2:25 AM, Sebastian Huber wrote: > Module:rtems > Branch:master > Commit:8e133b25005947879113a46cc33414dfbcce6123 >

Use cases for rtems_libio_share_private_env

2014-03-24 Thread Christian Mauderer
Hello, I'm still trying to eliminate task-variables for better compatibility with SMP. At the moment I'm working on the privateenv module. In this module there is a function called rtems_libio_share_private_env that makes it possible to share the user environment from another thread. It seems tha

Raspberry Pi tools

2014-03-24 Thread Dennis Rondeau
Hello, I have a little hack that may make your Raspberry Pi use with RTEMS a little easier. It will allow you to not have to remove your SD card when programming with RTEMS. You can even use your Raspberry Pi for development if you wanted. This hack will make your SD card dual boot between Raspbia

Re: [PATCH 1/2] Changed console driver to use interrupts instead of polling. Change to avoid overwriting CPU32Bug interrupt vector when setting up the Sci interrupt handler. Fixed type for boolean fla

2014-03-24 Thread Gedare Bloom
James, Thanks. I will check-in if no complaints. Ping me on Thursday if it hasn't been done. -Gedare On Mon, Mar 24, 2014 at 5:35 AM, James Fitzsimons wrote: > Hi Gedare, > > I've just submitted a revised patch, I hope it all looks ok now. > > This new patch includes the changes from both the pat

Re: [PATCH 1/2] Changed console driver to use interrupts instead of polling. Change to avoid overwriting CPU32Bug interrupt vector when setting up the Sci interrupt handler. Fixed type for boolean fla

2014-03-24 Thread James Fitzsimons
Hi Gedare, I've just submitted a revised patch, I hope it all looks ok now. This new patch includes the changes from both the patches I previously submitted - I hope that isn't a problem? Cheers, James On 20 March 2014 09:06, Gedare Bloom wrote: > On Wed, Mar 19, 2014 at 3:11 PM, James Fitzs

[PATCH] This patch contains the changes required to get the mrm332 bsp working again.

2014-03-24 Thread James Fitzsimons
Changed console driver to use interrupts instead of polling. Change to avoid overwriting CPU32Bug interrupt vector when setting up the Sci interrupt handler. Fixed type for boolean flag in bsp.h. Changed mrm332.h to use 25Mhz clock. Fixes to mrm332.cfg to use correct mcpu32 value for RTEMS_CPU_MOD

[PATCH] score: Delete _Watchdog_Report()

2014-03-24 Thread Sebastian Huber
Delete _Watchdog_Report_chain(). These two functions use printk() with thread dispatching and interrupts disabled. So they are pretty useless in real applications. They are not part of the application APIs. They are only used in one test and do nothing useful in this test. --- cpukit/score/Mak

[PATCH] score: PR2174: Add workaround

2014-03-24 Thread Sebastian Huber
Add _Scheduler_FIXME_thread_priority_queues_are_broken to prevent thread priority queues in case an EDF scheduler is used. --- cpukit/sapi/include/confdefs.h |6 ++ cpukit/score/include/rtems/score/scheduler.h |6 ++ cpukit/score/src/threadq.c |5