[PATCH 05/12] rtems: Remove dead code

2016-04-08 Thread Sebastian Huber
The heap protection enabled by RTEMS_DEBUG offers the same functionality and more. --- cpukit/rtems/src/regionreturnsegment.c | 20 1 file changed, 20 deletions(-) diff --git a/cpukit/rtems/src/regionreturnsegment.c b/cpukit/rtems/src/regionreturnsegment.c index

[PATCH 10/12] rtems: Delete Region_Control::starting_address

2016-04-08 Thread Sebastian Huber
--- cpukit/libmisc/monitor/mon-region.c | 2 +- cpukit/rtems/include/rtems/rtems/region.h | 1 - cpukit/rtems/src/regioncreate.c | 7 +++ 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/cpukit/libmisc/monitor/mon-region.c b/cpukit/libmisc/monitor/mon-region.c

[PATCH v2] shell: Fix warning visible with latest Newlib

2016-04-08 Thread Sebastian Huber
Works also with previous Newlib versions. --- cpukit/libmisc/shell/main_date.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpukit/libmisc/shell/main_date.c b/cpukit/libmisc/shell/main_date.c index 9b970a6..6070ff0 100644 --- a/cpukit/libmisc/shell/main_date.c +++

[PATCH 1/2] mpci: Avoid Giant lock

2016-03-19 Thread Sebastian Huber
Update #2555. --- cpukit/score/src/mpci.c | 19 +++ 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/cpukit/score/src/mpci.c b/cpukit/score/src/mpci.c index c191bbe..3929d78 100644 --- a/cpukit/score/src/mpci.c +++ b/cpukit/score/src/mpci.c @@ -237,16 +237,19 @@

[PATCH] score: Add _Objects_Get_by_name()

2016-03-19 Thread Sebastian Huber
Replace _Objects_Name_to_id_string() with _Objects_Get_by_name() since all users of this function are interested in the object itself and not the identifier. Use the object allocator lock to protect the search. Update #2555. --- cpukit/posix/include/rtems/posix/mqueueimpl.h| 21 +

Re: Participation in GSoC 2016

2016-03-19 Thread Sebastian Huber
just in your local queue. I didn't look into the details, but I think this is enough for strong APA. See also _Scheduler_priority_affinity_SMP_Check_for_migrations(). -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 4

[PATCH] FreeBSD compatibility for

2016-03-19 Thread Sebastian Huber
* libc/include/sys/_sigset.h: New. * libc/include/sys/select.h: Do not include and to avoid cyclic header file dependencies. Include specialized header files instead. (sigset_t): Conditionally define. * libc/include/sys/signal.h (sigset_t):

[PATCH] posix: Use per-thread lookup tree for POSIX Keys

2016-03-19 Thread Sebastian Huber
Yields higher performance on SMP systems. Close #2625. --- cpukit/libcsupport/src/resource_snapshot.c | 27 ++--- cpukit/posix/Makefile.am | 2 +- cpukit/posix/include/rtems/posix/key.h | 20 ++-- cpukit/posix/include/rtems/posix/keyimpl.h | 162

Re: Participation in GSoC 2016

2016-03-19 Thread Sebastian Huber
od of testing you plan to use? Not the tests just the set up details, eg is this with the scheduler simulator, qemu, or real hardware or all listed plus also which architectures? We can use Qemu and the hardware here in our office. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D

[PATCH 3/5] Add timingsafe_bcmp()

2016-03-19 Thread Sebastian Huber
This function is used by LibreSSL and OpenSSH and is provided by the OpenBSD libc. * libc/include/string.h (timingsafe_bcmp): Declare. * libc/string/timingsafe_bcmp.c: New file. * libc/string/Makefile.am: Add new file. * libc/string/Makefile.in: Regenerate. ---

Re: GSoC 2016 Participation

2016-03-21 Thread Sebastian Huber
SMP is moving fast right now. Sebastian Huber may have more to say on whether anything is worth trying for GSoC. SMP and GSoC is maybe something for next year. The condition variables are not suitable as a GSoC project. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puc

Re: [PATCH 3/5] libstdthreads/thrd.c: Mark path as unreachable on GCC to resolve warning

2016-03-21 Thread Sebastian Huber
; -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine geschäftliche Mitteilung im

Re: 4.11 Branch Failures

2016-03-21 Thread Sebastian Huber
ve a look? Its already fixed on the master. https://git.rtems.org/rtems-tools/commit/?id=f027f37661fc8c12ab07f92982f0c86e4e0717de From my point of view we should not use branches for the RTEMS Tools and RSB. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Ger

[PATCH 4/5] Add timingsafe_memcmp()

2016-03-20 Thread Sebastian Huber
This function is used by LibreSSL and OpenSSH and is provided by the OpenBSD libc. * libc/include/string.h (timingsafe_memcmp): Declare. * libc/string/timingsafe_memcmp.c: New file. * libc/string/Makefile.am: Add new file. * libc/string/Makefile.in: Regenerate. ---

[PATCH 1/5] Guard ssize_t definition by _SSIZE_T_DECLARED

2016-03-20 Thread Sebastian Huber
This guard is used by FreeBSD for example. The FreeBSD network stack is used in RTEMS. * newlib/libc/include/sys/types.h (ssize_t): Guard by _SSIZE_T_DECLARED. --- newlib/libc/include/sys/types.h | 4 1 file changed, 4 insertions(+) diff --git

Re: [PATCH 3/5] libstdthreads/thrd.c: Mark path as unreachable on GCC to resolve warning

2016-03-22 Thread Sebastian Huber
On 21/03/16 17:53, Joel Sherrill wrote: On Mon, Mar 21, 2016 at 7:33 AM, Sebastian Huber <sebastian.hu...@embedded-brains.de <mailto:sebastian.hu...@embedded-brains.de>> wrote: On 21/03/16 13:31, Joel Sherrill wrote: On Mon, Mar 21, 2016 at 1:26 AM, Seb

[PATCH 2/2] posix: pthread_exit() is a no-return function

2016-03-22 Thread Sebastian Huber
--- cpukit/posix/src/pthreadexit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpukit/posix/src/pthreadexit.c b/cpukit/posix/src/pthreadexit.c index 6b3a09a..6f8a7a7 100644 --- a/cpukit/posix/src/pthreadexit.c +++ b/cpukit/posix/src/pthreadexit.c @@ -75,4 +75,5 @@ void pthread_exit( ) {

[PATCH 1/2] score: Add RTEMS_UNREACHABLE

2016-03-22 Thread Sebastian Huber
--- cpukit/score/include/rtems/score/basedefs.h | 9 + 1 file changed, 9 insertions(+) diff --git a/cpukit/score/include/rtems/score/basedefs.h b/cpukit/score/include/rtems/score/basedefs.h index facaed9..5d7f5b4 100644 --- a/cpukit/score/include/rtems/score/basedefs.h +++

Re: GSoC 2016 Participation

2016-03-22 Thread Sebastian Huber
with the exception of the strong APA scheduler optimization. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key available on request

[PATCH 2/2] score: Use constant for maximum count of CORE sema

2016-03-23 Thread Sebastian Huber
--- cpukit/libmisc/monitor/mon-sema.c | 7 ++- cpukit/posix/src/semaphorecreatesupp.c | 1 - cpukit/rtems/src/semcreate.c | 1 - cpukit/score/include/rtems/score/coresem.h | 13 - cpukit/score/include/rtems/score/coresemimpl.h | 4

[PATCH 6/8] network: Special case for RTEMS_MULTIPROCESSING

2016-03-24 Thread Sebastian Huber
Allow network tasks to run with priority 0 (PRIORITY_PSEUDO_ISR). --- cpukit/libnetworking/rtems/rtems_glue.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/cpukit/libnetworking/rtems/rtems_glue.c b/cpukit/libnetworking/rtems/rtems_glue.c index 1355fbb..b50f734 100644 ---

[PATCH 2/8] score: Fix CORE mutex RTEMS_MULTIPROCESSING

2016-03-24 Thread Sebastian Huber
Make sure that the thread proxy is registered as the mutex owner. --- cpukit/score/src/coremutexsurrender.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/cpukit/score/src/coremutexsurrender.c b/cpukit/score/src/coremutexsurrender.c index 744adc5..da21d4b 100644

[PATCH 5/8] mpci: Fix _Objects_MP_Is_remote()

2016-03-24 Thread Sebastian Huber
Bug introduced by be8897644043e4378db7add02c3c9e1ac7fde563. Update #2555. --- cpukit/score/src/objectmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/score/src/objectmp.c b/cpukit/score/src/objectmp.c index be55fa7..c8f431f 100644 --- a/cpukit/score/src/objectmp.c

[PATCH 3/8] mpci: Allow packet receive function to block

2016-03-24 Thread Sebastian Huber
--- cpukit/score/src/mpci.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpukit/score/src/mpci.c b/cpukit/score/src/mpci.c index 132d3e5..76ca4c8 100644 --- a/cpukit/score/src/mpci.c +++ b/cpukit/score/src/mpci.c @@ -343,6 +343,8 @@ void _MPCI_Receive_server( ); for ( ; ; ) {

[PATCH 4/8] mpci: Fix thread proxies

2016-03-24 Thread Sebastian Huber
--- cpukit/sapi/include/confdefs.h| 4 +++- cpukit/score/src/threadmp.c | 40 +-- cpukit/score/src/threadqenqueue.c | 11 ++- 3 files changed, 43 insertions(+), 12 deletions(-) diff --git a/cpukit/sapi/include/confdefs.h

[PATCH 1/8] confdefs.h: Account for MPCI task stack

2016-03-24 Thread Sebastian Huber
--- cpukit/sapi/include/confdefs.h | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 89beb23..2366c7a 100644 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -1919,13

[PATCH 8/8] confdefs.h hack

2016-03-24 Thread Sebastian Huber
Not to be committed. How can we fix this? --- cpukit/sapi/include/confdefs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 6d67a02..715d4fc 100644 --- a/cpukit/sapi/include/confdefs.h +++

Re: [PATCH 7/8] bsp/motorola_powerpc: Add MPCI support for Qemu

2016-03-24 Thread Sebastian Huber
ks pretty good. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.huber at embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine gesc

Re: GSoC 2016 Participation

2016-03-21 Thread Sebastian Huber
the concept and theory of phase fair RW locks from reference suggested in RTEMS( http://www.mpi-sws.org/~bbb/papers/pdf/rtsj11.pdf <http://www.mpi-sws.org/%7Ebbb/papers/pdf/rtsj11.pdf>) On Mon, Mar 21, 2016 at 12:02 PM, Sebastian Huber <sebastian.hu...@embedded-brains.de <mailto:

Re: [PATCH 3/5] libstdthreads/thrd.c: Mark path as unreachable on GCC to resolve warning

2016-03-21 Thread Sebastian Huber
On 21/03/16 13:31, Joel Sherrill wrote: On Mon, Mar 21, 2016 at 1:26 AM, Sebastian Huber <sebastian.hu...@embedded-brains.de <mailto:sebastian.hu...@embedded-brains.de>> wrote: On 20/03/16 21:40, Joel Sherrill wrote: --- cpukit/libstdthread

[PATCH] rtems: Rework rate-monotonic scheduler

2016-03-21 Thread Sebastian Huber
Use the default thread lock to protect rate-monotonic state changes. his avoids use of the Giant lock. Split rtems_rate_monotonic_period() body into several static functions. Introduce a new thread wait class THREAD_WAIT_CLASS_PERIOD for period objects to synchronize the blocking operation.

Re: What to do with rtems_semaphore_flush() on SMP?

2016-03-22 Thread Sebastian Huber
On 22/03/16 15:23, Joel Sherrill wrote: On Tue, Mar 22, 2016 at 8:56 AM, Sebastian Huber <sebastian.hu...@embedded-brains.de <mailto:sebastian.hu...@embedded-brains.de>> wrote: Hello, I am currently busy with eliminating the Giant lock for SMP. I came acro

What to do with rtems_semaphore_flush() on SMP?

2016-03-22 Thread Sebastian Huber
and rtems_configuration_is_smp_enabled(). -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine geschäftliche

Re: newlib master vs current newlib snapshot

2016-03-23 Thread Sebastian Huber
not expose any implementation details via . Its bad that the struct bintime is visible via this include. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP

Re: [PATCH 01/14] cpuuse/cpuusagetop.c: Fix unused variable warning

2016-03-23 Thread Sebastian Huber
On 22/03/16 16:21, Joel Sherrill wrote: Please commit your RTEMS_UNREACHABLE so I can use it. ::) I committed a slightly modified version that includes the assert. So, this will probably conflict with one of your patches. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D

Re: [PATCH 5/8] score: Add _Per_CPU_Is_boot_processor()

2016-03-04 Thread Sebastian Huber
On 03/03/16 16:18, Joel Sherrill wrote: On Thu, Mar 3, 2016 at 9:14 AM, Sebastian Huber <sebastian.hu...@embedded-brains.de <mailto:sebastian.hu...@embedded-brains.de>> wrote: On 03/03/16 16:12, Joel Sherrill wrote: Other than bookkeeping, what is this goin

Re: [PATCH 8/8] score: Replace watchdog handler implementation

2016-03-03 Thread Sebastian Huber
4/share/rtems/html/FAQ/FAQ00100.html We have multiple date/time and interval representations in the score, classic and POSIX APIs. It would be good to capture them again. Yes, this is on my TODO list along with the year 2038 problem. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr.

Re: Policy for RSB branches for 4.9, 4.10 and 4.11

2016-03-04 Thread Sebastian Huber
. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine geschäftliche Mitteilung im

Re: GSoC2016 : Providing SMP support for RTEMS

2016-03-06 Thread Sebastian Huber
for a GSoC project. Even adding SMP support to new architectures shouldn't be a big deal. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP

[PATCH 3/8] score: Rename Per_CPU_Control::started

2016-03-03 Thread Sebastian Huber
Rename Per_CPU_Control::started into Per_CPU_Control::online to match standard nomenclature. --- cpukit/score/include/rtems/score/percpu.h | 6 +++--- cpukit/score/src/smp.c| 4 ++-- cpukit/score/src/threadcreateidle.c | 2 +- 3 files changed, 6 insertions(+), 6

[PATCH 6/8] score: Add _SMP_Before_multitasking_action()

2016-03-03 Thread Sebastian Huber
Update #2554. --- cpukit/score/include/rtems/score/percpu.h | 8 +++ cpukit/score/include/rtems/score/smpimpl.h | 48 +++- cpukit/score/src/percpu.c | 92 +++--- cpukit/score/src/smp.c | 23

[PATCH 4/8] score: Add _SMP_Online_processors

2016-03-03 Thread Sebastian Huber
--- cpukit/score/include/rtems/score/smpimpl.h | 11 +++ cpukit/score/src/smp.c | 5 - testsuites/smptests/smpipi01/init.c| 10 ++ 3 files changed, 25 insertions(+), 1 deletion(-) diff --git a/cpukit/score/include/rtems/score/smpimpl.h

[PATCH 2/8] score: Add Processor_mask, etc.

2016-03-03 Thread Sebastian Huber
--- cpukit/score/Makefile.am | 1 + cpukit/score/include/rtems/score/processormask.h | 90 cpukit/score/preinstall.am | 4 ++ 3 files changed, 95 insertions(+) create mode 100644

[PATCH 1/8] score: Add CPU_MAXIMUM_PROCESSORS

2016-03-03 Thread Sebastian Huber
Maximum number of processors of all systems supported by this CPU port. --- cpukit/score/cpu/arm/rtems/score/cpu.h | 2 ++ cpukit/score/cpu/bfin/rtems/score/cpu.h | 2 ++ cpukit/score/cpu/epiphany/rtems/score/cpu.h | 2 ++ cpukit/score/cpu/i386/rtems/score/cpu.h | 2 ++

Re: [PATCH 6/8] score: Add _SMP_Before_multitasking_action()

2016-03-03 Thread Sebastian Huber
On 03/03/16 16:08, Joel Sherrill wrote: The git log message needs more but it looks good otherwise. Ok, I had to add this for the Cortex-A9 MPCore which has per-processor registers for the global timer used by the clock driver. This might be useful for other drivers as well. -- Sebastian

[PATCH 5/8] score: Add _Per_CPU_Is_boot_processor()

2016-03-03 Thread Sebastian Huber
--- cpukit/score/include/rtems/score/percpu.h | 19 +++ cpukit/score/src/smp.c| 2 ++ 2 files changed, 21 insertions(+) diff --git a/cpukit/score/include/rtems/score/percpu.h b/cpukit/score/include/rtems/score/percpu.h index 2b05b78..19f46d2 100644 ---

Use red-black tree for Watchdog Handler

2016-03-03 Thread Sebastian Huber
This patch set replaces the Watchdog Handler implementation based on delta chains with a red-black tree. The existing red-black tree infrastructure is reused. Performance results are quite good. See also: https://devel.rtems.org/ticket/2554 ___ devel

Re: [PATCH 7/8] score: Distribute clock tick to all online CPUs

2016-03-03 Thread Sebastian Huber
. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine geschäftliche Mitteilung im Sinne

Re: [PATCH 5/8] score: Add _Per_CPU_Is_boot_processor()

2016-03-03 Thread Sebastian Huber
configuration. The boot processor is the processor that performs the sequential system initialization. This name is used in several other places. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41

Re: [PATCH 8/8] score: Replace watchdog handler implementation

2016-03-03 Thread Sebastian Huber
Thanks a lot for your review. - Gedare Bloom schrieb: > I scanned through most of it. I just have a few minor issues/questions: > > There is an _Assert(0) followed by a TODO. This _Assert() is likely > dead/untested code block. It may be worth fabricating a fatal test for >

[PATCH] score: Add and use _Objects_Get_local()

2016-03-07 Thread Sebastian Huber
This simplifies the handling with local-only objects. Update #2555. --- cpukit/posix/include/rtems/posix/timerimpl.h | 4 +- cpukit/posix/src/timerdelete.c| 36 + cpukit/posix/src/timergetoverrun.c| 26 - cpukit/posix/src/timergettime.c

Re: GSoC2016 : Providing SMP support for RTEMS

2016-03-07 Thread Sebastian Huber
On 07/03/16 16:05, Joel Sherrill wrote: On Mar 7, 2016 12:03 AM, "Sebastian Huber" <sebastian.hu...@embedded-brains.de <mailto:sebastian.hu...@embedded-brains.de>> wrote: > > Hello, > > > On 06/03/16 19:17, Joel Sherrill wrote: >> &

Re: IMFS_GENERIC_INITIALIZER deprecated?

2016-03-07 Thread Sebastian Huber
- Am 7. Mrz 2016 um 20:07 schrieb Joel Sherrill j...@rtems.org: > On Mon, Mar 7, 2016 at 12:04 PM, Isaac Gutekunst > wrote: > >> Hi Developers, >> >> We have used IMFS_GENERIC_INITIALIZER as part of some code that makes IMFS >> nodes for devices. The IMFS

Next step: Elimination of the Giant lock

2016-03-06 Thread Sebastian Huber
https://devel.rtems.org/ticket/2630 Use an ISR lock to protect the state of Classic Rate Monotonic objects https://devel.rtems.org/ticket/2631 -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E

Re: [PATCH 8/8] score: Replace watchdog handler implementation

2016-03-06 Thread Sebastian Huber
On 04/03/16 20:12, Joel Sherrill wrote: On Fri, Mar 4, 2016 at 12:25 AM, Sebastian Huber <sebastian.hu...@embedded-brains.de <mailto:sebastian.hu...@embedded-brains.de>> wrote: On 03/03/16 23:44, Joel Sherrill wrote: > > "be pl

Re: [PATCH] or1k: add KEEP section directives to the linkcmds

2016-04-05 Thread Sebastian Huber
the only one necessary. [...] -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key available on request. Diese Nachricht ist keine g

Re: [PATCH] or1k: add KEEP section directives to the linkcmds

2016-04-05 Thread Sebastian Huber
CTIONS { .vector : ALIGN_WITH_INPUT { -*(.vector) +KEEP (*(.vector)) . = ALIGN(bsp_vector_table_size); bsp_section_vector_end = .; } > REGION_VECTOR AT > REGION_VECTOR -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phon

psim: RTEMS_SHM_SEMAPHORE_KEY and RTEMS_SHM_KEY

2016-04-05 Thread Sebastian Huber
Hello, the psim simulator script requires a RTEMS_SHM_SEMAPHORE_KEY and RTEMS_SHM_KEY. Does anyone know how to set up this? -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail

[PATCH] score: Delete Thread_Wait_information::id

2016-04-05 Thread Sebastian Huber
This field was only by the monitor in non-multiprocessing configurations. Add new field Thread_Wait_information::remote_id in multiprocessing configurations and use it for the remote procedure call thread queue. Add _Thread_Wait_get_id() to obtain the object identifier for debug and system

[PATCH 03/15] posix: Fix _POSIX_signals_Check_signal()

2016-04-05 Thread Sebastian Huber
Do not save and restore the thread wait information. This is superfluous and may overwrite thread wait information updates due to interrupts leading to system corruption. --- cpukit/posix/src/psignal.c | 31 +++ 1 file changed, 11 insertions(+), 20 deletions(-) diff

[PATCH 09/15] score: Delete _Chain_Append_with_empty_check()

2016-04-05 Thread Sebastian Huber
This function is not used in the score. Update #2555. --- cpukit/sapi/include/rtems/chain.h| 10 --- cpukit/sapi/src/chainprotected.c | 4 +-- cpukit/score/Makefile.am | 2 +- cpukit/score/include/rtems/score/chainimpl.h | 19

[PATCH 06/15] score: Use red-black tree for active global objects

2016-04-05 Thread Sebastian Huber
Use a red-black tree to lookup active global objects by identifier or name. Update #2555. --- cpukit/sapi/include/confdefs.h | 9 - cpukit/score/include/rtems/score/object.h | 46 ++- cpukit/score/include/rtems/score/objectimpl.h | 16 +-

[PATCH 08/15] score: Delete _Chain_Prepend()

2016-04-05 Thread Sebastian Huber
This function is not used in the score. Update #2555. --- cpukit/sapi/Makefile.am | 2 +- cpukit/sapi/include/rtems/chain.h| 10 -- cpukit/sapi/src/chainprotected.c | 139 +++ cpukit/sapi/src/chainsmp.c |

[PATCH 02/15] posix: Make _POSIX_signals_Check_signal() static

2016-04-05 Thread Sebastian Huber
--- cpukit/posix/Makefile.am | 2 +- cpukit/posix/include/rtems/posix/psignalimpl.h | 9 -- cpukit/posix/src/psignal.c | 74 cpukit/posix/src/psignalchecksignal.c | 113 - 4 files changed, 75

[PATCH 04/15] score: Add node adjust to _RBTree_Find_inline()

2016-04-05 Thread Sebastian Huber
--- cpukit/posix/include/rtems/posix/keyimpl.h | 14 ++ cpukit/posix/src/keygetspecific.c | 15 ++- cpukit/posix/src/keysetspecific.c | 29 + cpukit/score/include/rtems/score/rbtree.h | 12 4 files changed, 37

[PATCH 07/15] rtems: Avoid Giant lock for partitions

2016-04-05 Thread Sebastian Huber
Use an ISR lock to protect the partition state changes. Update #2555. --- cpukit/rtems/include/rtems/rtems/part.h | 3 ++ cpukit/rtems/include/rtems/rtems/partimpl.h | 73 ++--- cpukit/rtems/src/partcreate.c | 15 +++--- cpukit/rtems/src/partdelete.c

[PATCH 05/15] score: Use red-black tree for active MP proxies

2016-04-05 Thread Sebastian Huber
Update #2555. --- cpukit/score/include/rtems/score/thread.h | 6 +- cpukit/score/include/rtems/score/threadmp.h | 29 + cpukit/score/src/threadmp.c | 162 +--- testsuites/sptests/spsize/size.c| 5 - 4 files changed, 106 insertions(+),

[PATCH 10/15] score: Delete _Chain_Prepend_with_empty_check()

2016-04-05 Thread Sebastian Huber
This function is not used in the score. Update #2555. --- cpukit/sapi/include/rtems/chain.h| 10 --- cpukit/sapi/src/chainprotected.c | 4 +-- cpukit/score/Makefile.am | 2 +- cpukit/score/include/rtems/score/chainimpl.h | 19

[PATCH 11/15] score: Delete _Chain_Get_with_empty_check()

2016-04-05 Thread Sebastian Huber
This function is not used in the score. Update #2555. --- cpukit/sapi/include/rtems/chain.h| 10 --- cpukit/sapi/src/chainprotected.c | 4 --- cpukit/score/Makefile.am | 1 - cpukit/score/include/rtems/score/chainimpl.h | 25

[PATCH 15/15] score: Delete _Chain_Append()

2016-04-05 Thread Sebastian Huber
This function is not used in the score. Update #2555. --- cpukit/sapi/include/rtems/chain.h| 10 -- cpukit/sapi/src/chainprotected.c | 4 --- cpukit/score/Makefile.am | 2 +- cpukit/score/include/rtems/score/chainimpl.h | 13 ---

[PATCH 13/15] score: Delete _Chain_Extract()

2016-04-05 Thread Sebastian Huber
This function is not used in the score. Update #2555. --- cpukit/sapi/include/rtems/chain.h| 9 --- cpukit/sapi/src/chainprotected.c | 4 ++-- cpukit/score/Makefile.am | 2 +- cpukit/score/include/rtems/score/chainimpl.h | 15

[PATCH 12/15] score: Delete _Chain_Insert()

2016-04-05 Thread Sebastian Huber
This function is not used in the score. Update #2555. --- cpukit/sapi/include/rtems/chain.h| 10 -- cpukit/sapi/src/chainprotected.c | 4 +++ cpukit/score/Makefile.am | 2 +- cpukit/score/include/rtems/score/chainimpl.h | 21 ---

[PATCH 01/15] posix: Use proper lock for signals

2016-04-05 Thread Sebastian Huber
--- cpukit/posix/src/killinfo.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/cpukit/posix/src/killinfo.c b/cpukit/posix/src/killinfo.c index a29a8e6..7a70539 100644 --- a/cpukit/posix/src/killinfo.c +++ b/cpukit/posix/src/killinfo.c @@ -75,6 +75,7 @@ int

[PATCH 14/15] score: Delete _Chain_Get()

2016-04-05 Thread Sebastian Huber
This function is not used in the score. Update #2555. --- cpukit/sapi/include/rtems/chain.h| 9 --- cpukit/sapi/src/chainprotected.c | 4 --- cpukit/score/Makefile.am | 1 - cpukit/score/include/rtems/score/chainimpl.h | 16

Re: [PATCH 2/2] confdefs.h hack

2016-03-29 Thread Sebastian Huber
On 29/03/16 13:47, Sebastian Huber wrote: Not to be committed. How can we fix this? I was able to run all MP tests except mp14 successfully using Qemu and a virtual network. The TCP/IP based MPCI support is basically BSP independent and should work for all BSPs that support a network

[PATCH 1/2] bsp/motorola_powerpc: Add MPCI support for Qemu

2016-03-29 Thread Sebastian Huber
--- .../libbsp/powerpc/motorola_powerpc/Makefile.am| 2 + .../libbsp/powerpc/motorola_powerpc/include/bsp.h | 10 + .../libbsp/powerpc/motorola_powerpc/shmsupp/mpci.c | 379 + 3 files changed, 391 insertions(+) create mode 100644

[PATCH 2/2] confdefs.h hack

2016-03-29 Thread Sebastian Huber
Not to be committed. How can we fix this? --- cpukit/sapi/include/confdefs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 2018c4e..6c55cdb 100644 --- a/cpukit/sapi/include/confdefs.h +++

[PATCH 2/5] score: Fix _Thread_queue_Extract_locked()

2016-04-01 Thread Sebastian Huber
We must update the wait flags under protection of the current thread lock, otherwise a _Thread_Timeout() running on another processor may interfere. --- cpukit/score/src/threadqenqueue.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git

[PATCH 5/5] score: Rework MP thread queue callout support

2016-04-01 Thread Sebastian Huber
The thread queue implementation was heavily reworked to support SMP. This broke the multiprocessing support of the thread queues. This is fixed by this patch. A thread proxy is unblocked due to three reasons 1) timeout, 2) request satisfaction, and 3) extraction. In case 1) no MPCI

[PATCH 3/5] score: _Thread_queue_Flush() parameter changes

2016-04-01 Thread Sebastian Huber
Change _Thread_queue_Flush() into a macro that invokes _Thread_queue_Do_flush() with the parameter set defined by RTEMS_MULTIPROCESSING. For multiprocessing configurations add the object identifier to avoid direct use of the thread wait information. Use mp_ prefix for multiprocessing related

[PATCH 4/5] score: Simplify _Thread_queue_Do_flush()

2016-04-01 Thread Sebastian Huber
Also set the thread wait return code for thread proxies since this causes no harm. --- cpukit/score/src/threadqflush.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cpukit/score/src/threadqflush.c b/cpukit/score/src/threadqflush.c index 694c746..56dd805 100644 ---

[PATCH 1/5] score: Delete MP support for RW locks

2016-04-01 Thread Sebastian Huber
MP support was not implemented. --- cpukit/posix/src/prwlockrdlock.c | 4 +-- cpukit/posix/src/prwlocktimedrdlock.c | 4 +-- cpukit/posix/src/prwlocktimedwrlock.c | 4 +-- cpukit/posix/src/prwlocktryrdlock.c | 4 +--

Re: [PATCH] [RSB] use updated newlib revision for or1k

2016-03-29 Thread Sebastian Huber
plans to integrate the or1k stuff into the FSF GCC? -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key available on request. Diese

Re: [PATCH 2/2] posix: pthread_exit() is a no-return function

2016-03-22 Thread Sebastian Huber
1.8.4.5 ___ devel mailing list devel@rtems.org <mailto:devel@rtems.org> http://lists.rtems.org/mailman/listinfo/devel -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 1

Re: [PATCH 1/2] score: Add RTEMS_UNREACHABLE

2016-03-22 Thread Sebastian Huber
In case we reach the program point marked with RTEMS_UNREACHABLE(), then the behaviour is undefined according to the GCC documentation. Maybe we should add some stuff if RTEMS_DEBUG is defined. On 22/03/16 07:25, Sebastian Huber wrote: --- cpukit/score/include/rtems/score/basedefs.h | 9

Re: Rtems-test cortex-m3

2016-03-31 Thread Sebastian Huber
the spintrcritical* tests may timeout out. All other timeouts should be looked at individually. -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public

Re: [PATCH 1/2] score: Add and use _RBTree_Find_inline()

2016-03-31 Thread Sebastian Huber
0,9 bne+ 7,.L13 + addi 4,3,8 mr 10,24 b .L14 .p2align 4,,15 @@ -134,7 +135,6 @@ cmpwi 7,9,0 addi 8,9,4 bne+ 7,.L17 - addi 4,3,8 stw 9,12(3) stw 9,8(3) li 9,1 -- Sebastian Huber, embedded brains GmbH Addr

[PATCH 10/18] Provide POSIX defined blksize_t in

2016-04-14 Thread Sebastian Huber
Signed-off-by: Sebastian Huber <sebastian.hu...@embedded-brains.de> --- newlib/libc/include/sys/_types.h | 4 newlib/libc/include/sys/stat.h | 2 +- newlib/libc/include/sys/types.h| 5 + newlib/libc/sys/rtems/include/machine/_types

[PATCH 09/18] Provide POSIX defined blkcnt_t in

2016-04-14 Thread Sebastian Huber
Signed-off-by: Sebastian Huber <sebastian.hu...@embedded-brains.de> --- newlib/libc/include/sys/_types.h | 4 newlib/libc/include/sys/stat.h | 2 +- newlib/libc/include/sys/types.h| 5 + newlib/libc/sys/rtems/include/machine/_types

[PATCH 01/18] Use __machine_*_t_defined for internal types

2016-04-14 Thread Sebastian Huber
for user types, e.g. dev_t in this example. Introduce a __machine_*_t_defined pattern for internal types (defined by , used by ). For example #ifndef __machine_dev_t_defined typedef short __dev_t; #endif Signed-off-by: Sebastian Huber <sebastian.hu...@embedded-brains

[PATCH 15/18] Add __va_list to

2016-04-14 Thread Sebastian Huber
Add __va_list to for BSD compatibility. In FreeBSD this typedef is provided by the various architecture-specific in a copy and paste manner. Signed-off-by: Sebastian Huber <sebastian.hu...@embedded-brains.de> --- newlib/libc/include/sys/_types.h | 6 ++ 1 file changed, 6 inse

[PATCH 02/18] Provide POSIX defined id_t in

2016-04-14 Thread Sebastian Huber
Signed-off-by: Sebastian Huber <sebastian.hu...@embedded-brains.de> --- newlib/libc/include/sys/_types.h | 4 newlib/libc/include/sys/types.h| 5 + winsup/cygwin/include/cygwin/types.h | 6 -- winsup/cygwin/include/machine/_types.h | 3 +++ 4 files chang

[PATCH 06/18] Add BSD guard for time_t

2016-04-14 Thread Sebastian Huber
Signed-off-by: Sebastian Huber <sebastian.hu...@embedded-brains.de> --- newlib/libc/include/sys/_timespec.h| 3 ++- newlib/libc/include/sys/_timeval.h | 3 ++- newlib/libc/include/sys/_types.h | 4 +++- newlib/libc/include/sys/timeb.h| 7 --- newlib/libc/inclu

[PATCH 16/18] Include in

2016-04-14 Thread Sebastian Huber
Include in if __BSD_VISIBLE for BSD compatibility. This is in line with glibc . Signed-off-by: Sebastian Huber <sebastian.hu...@embedded-brains.de> --- newlib/libc/include/sys/types.h | 1 + 1 file changed, 1 insertion(+) diff --git a/newlib/libc/include/sys/types.h b/newlib/libc/inclu

[PATCH 04/18] Define mode_t via __mode_t

2016-04-14 Thread Sebastian Huber
Use __uint32_t to avoid the use of GCC-specific _ST_INT32. Signed-off-by: Sebastian Huber <sebastian.hu...@embedded-brains.de> --- newlib/libc/include/sys/_types.h | 16 + newlib/libc/include/sys/types.h| 50 -- newlib/libc/sys

[PATCH 13/18] Add BSD guard for useconds_t

2016-04-14 Thread Sebastian Huber
Signed-off-by: Sebastian Huber <sebastian.hu...@embedded-brains.de> --- newlib/libc/include/sys/_types.h | 1 + newlib/libc/include/sys/types.h | 5 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/newlib/libc/include/sys/_types.h b/newlib/libc/include/sys/_types.h

[PATCH 18/18] Provide FNONBLOCK for BSD compatiblity

2016-04-14 Thread Sebastian Huber
Signed-off-by: Sebastian Huber <sebastian.hu...@embedded-brains.de> --- newlib/libc/include/sys/_default_fcntl.h | 4 1 file changed, 4 insertions(+) diff --git a/newlib/libc/include/sys/_default_fcntl.h b/newlib/libc/include/sys/_default_fcntl.h index 3be8f8d..ede90c4 100644 --- a/

[PATCH 12/18] Add BSD guard for nlink_t

2016-04-14 Thread Sebastian Huber
Signed-off-by: Sebastian Huber <sebastian.hu...@embedded-brains.de> --- newlib/libc/include/sys/_types.h | 1 + newlib/libc/include/sys/types.h | 5 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/newlib/libc/include/sys/_types.h b/newlib/libc/include/sys/_types.h

[PATCH 05/18] Add BSD guard for clock_t

2016-04-14 Thread Sebastian Huber
Signed-off-by: Sebastian Huber <sebastian.hu...@embedded-brains.de> --- newlib/libc/include/sys/_types.h | 4 +++- newlib/libc/include/sys/times.h | 7 --- newlib/libc/include/sys/types.h | 7 --- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/newlib/libc/inclu

[PATCH 17/18] Provide __size_t via

2016-04-14 Thread Sebastian Huber
ne __size_t in as a workaround. Signed-off-by: Sebastian Huber <sebastian.hu...@embedded-brains.de> --- newlib/libc/include/sys/_types.h | 15 +++ newlib/libc/include/sys/types.h | 3 +-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/newlib/libc/include/sys/_types.h b/ne

<    6   7   8   9   10   11   12   13   14   15   >