[PATCH 1/4] Add riscv32 to autotools files

2017-10-23 Thread Hesham Almatary
From: Hesham Almatary --- c/src/aclocal/rtems-cpu-subdirs.m4 | 1 + cpukit/configure.ac| 1 + cpukit/score/cpu/Makefile.am | 1 + 3 files changed, 3 insertions(+) diff --git a/c/src/aclocal/rtems-cpu-subdirs.m4 b/c/src/aclocal/rtems-cpu-subdirs.m4 index 44d38c9..b5b579e 1

[PATCH 3/4] cpukit: Add basic riscv32 architecture port v2

2017-10-23 Thread Hesham Almatary
From: Hesham Almatary Limitations: * NO FPU support [TODO] --- cpukit/score/cpu/riscv32/Makefile.am | 26 + cpukit/score/cpu/riscv32/cpu.c | 124 ++ .../score/cpu/riscv32/riscv-context-initialize.c | 67 + cpukit/score/cpu/riscv32/riscv-context-switch.S

[PATCH 2/4] cpukit: librpc - add riscv* to xdr_float.c

2017-10-23 Thread Hesham Almatary
From: Hesham Almatary --- cpukit/librpc/src/xdr/xdr_float.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cpukit/librpc/src/xdr/xdr_float.c b/cpukit/librpc/src/xdr/xdr_float.c index 4c58720..989cbff 100644 --- a/cpukit/librpc/src/xdr/xdr_float.c +++ b/cpukit/librpc/src/xdr/xdr_float.c @@

[PATCH 4/4] bsp: Add new riscv_generic bsp v2

2017-10-23 Thread Hesham Almatary
From: Hesham Almatary * Only runs/tested on simulator/spike. * Ticker, hello, capture work proprely * Tested via RTEMS Tester, Passed: 525/565 (92%) --- c/src/lib/libbsp/riscv32/Makefile.am | 14 + c/src/lib/libbsp/riscv32/acinclude.m4 | 10 + c/src/lib/libbsp/riscv3

[PATCH 05/16] rtems: Simplify RTEMS_MILLISECONDS_TO_MICROSECONDS

2017-10-23 Thread Sebastian Huber
Remove the cast so that it can be used in C pre-processor directives. Update #3117. Update #3182. --- cpukit/rtems/include/rtems/rtems/support.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/rtems/include/rtems/rtems/support.h b/cpukit/rtems/include/rtems/rtems/suppo

[PATCH 01/16] posix: Do not touch msg priority in case of error

2017-10-23 Thread Sebastian Huber
--- cpukit/posix/src/mqueuerecvsupp.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpukit/posix/src/mqueuerecvsupp.c b/cpukit/posix/src/mqueuerecvsupp.c index f91a513181..416e7989fd 100644 --- a/cpukit/posix/src/mqueuerecvsupp.c +++ b/cpukit/posix/src/mqueuerecvsupp

[PATCH 03/16] score: Add _Thread_Add_timeout_ticks()

2017-10-23 Thread Sebastian Huber
Replace _Thread_Timer_insert_monotonic() with _Thread_Add_timeout_ticks(). Update #3117. Update #3182. --- cpukit/rtems/src/eventseize.c | 7 +-- cpukit/rtems/src/taskwakeafter.c | 7 +-- cpukit/score/include/rtems/score/threadimpl.h | 11 +-- cpukit

Rework CLOCK_REALTIME timeouts

2017-10-23 Thread Sebastian Huber
The CLOCK_REALTIME timeout handling is now in line with POSIX. ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

[PATCH 07/16] score: Rename _Watchdog_Ticks_from_*()

2017-10-23 Thread Sebastian Huber
Rename _Watchdog_Ticks_from_*() to _Watchdog_Realtime_from_*(). This highlights that these routines are used for the CLOCK_REALTIME watchdogs (in contrast to CLOCK_MONOTONIC). Update #3117. Update #3182. --- cpukit/posix/src/nanosleep.c| 4 ++-- cpukit/rtems/src/taskwakewhen.

[PATCH 02/16] psxclockrealtime01: New test

2017-10-23 Thread Sebastian Huber
Update #3182. --- testsuites/psxtests/Makefile.am| 1 + testsuites/psxtests/configure.ac | 1 + testsuites/psxtests/psxclockrealtime01/Makefile.am | 19 + testsuites/psxtests/psxclockrealtime01/init.c | 602 + .../psxclockrealtime

[PATCH 12/16] score: Add _Watchdog_Monotonic_from_timespec()

2017-10-23 Thread Sebastian Huber
Update #3117. Update #3182. --- cpukit/score/include/rtems/score/watchdogimpl.h | 16 1 file changed, 16 insertions(+) diff --git a/cpukit/score/include/rtems/score/watchdogimpl.h b/cpukit/score/include/rtems/score/watchdogimpl.h index 31b44f1d0b..b3f396b7a3 100644 --- a/cpukit/

[PATCH 11/16] score: Add _Watchdog_Nanoseconds_per_tick

2017-10-23 Thread Sebastian Huber
Move it from the configuration to a separate variable. Update #3117. Update #3182. --- cpukit/sapi/include/confdefs.h | 4 +++- cpukit/sapi/include/rtems/config.h | 12 +++- cpukit/score/include/rtems/score/watchdog.h | 8 testsuites/sptests/spwatchdog/ini

[PATCH 08/16] score: _Watchdog_Is_far_future_realtime_timespec()

2017-10-23 Thread Sebastian Huber
Update #3117. Update #3182. --- cpukit/score/include/rtems/score/watchdogimpl.h | 41 +++-- 1 file changed, 32 insertions(+), 9 deletions(-) diff --git a/cpukit/score/include/rtems/score/watchdogimpl.h b/cpukit/score/include/rtems/score/watchdogimpl.h index f1693a3a14..d9dfa3

[PATCH 15/16] score: Rename function threadq support function

2017-10-23 Thread Sebastian Huber
Rename _Thread_queue_Context_set_do_nothing_enqueue_callout() into _Thread_queue_Context_set_enqueue_do_nothing_extra(). More _Thread_queue_Context_set_enqueue_*() functions will follow. Update #3117. Update #3182. --- cpukit/posix/src/mutexlocksupp.c | 2 +- cpukit/posix/src/nano

[PATCH 10/16] score: _Watchdog_Is_far_future_monotonic_timespec

2017-10-23 Thread Sebastian Huber
Update #3117. Update #3182. --- cpukit/sapi/include/confdefs.h | 3 +++ cpukit/score/include/rtems/score/watchdog.h | 9 + cpukit/score/include/rtems/score/watchdogimpl.h | 7 +++ testsuites/sptests/spwatchdog/init.c| 1 + 4 files changed, 20 insertions

[PATCH 09/16] score: Add _Watchdog_Is_valid_interval_timespec()

2017-10-23 Thread Sebastian Huber
Update #3117. Update #3182. --- cpukit/score/include/rtems/score/watchdogimpl.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/cpukit/score/include/rtems/score/watchdogimpl.h b/cpukit/score/include/rtems/score/watchdogimpl.h index d9dfa36b56..9fc1f05837 100644 --- a/cpukit/score/inclu

[PATCH 04/16] score: Add _Watchdog_Ticks_per_second

2017-10-23 Thread Sebastian Huber
This value is frequently used. Avoid the function call overhead and the integer division at run-time. Update #3117. Update #3182. --- cpukit/rtems/Makefile.am| 1 - cpukit/rtems/include/rtems/rtems/clock.h| 5 - cpukit/rtems/src/clockgettickspersecond.c | 29 -

[PATCH 14/16] score: Add _Thread_Continue()

2017-10-23 Thread Sebastian Huber
Update #3117. Update #3182. --- cpukit/score/include/rtems/score/threadimpl.h | 18 -- cpukit/score/src/threadtimeout.c | 25 + 2 files changed, 33 insertions(+), 10 deletions(-) diff --git a/cpukit/score/include/rtems/score/threadimpl.h b/cpu

[PATCH 13/16] score: _Watchdog_Per_CPU_lazy_insert_monotonic()

2017-10-23 Thread Sebastian Huber
Update #3117. Update #3182. --- cpukit/score/include/rtems/score/watchdogimpl.h | 25 + 1 file changed, 25 insertions(+) diff --git a/cpukit/score/include/rtems/score/watchdogimpl.h b/cpukit/score/include/rtems/score/watchdogimpl.h index b3f396b7a3..1fa67f3961 100644 ---

[PATCH 06/16] confdefs: Warn about problematic ticks per second

2017-10-23 Thread Sebastian Huber
A non-integer clock ticks per second value may lead to inaccurate time format conversions. Update #3117. Update #3182. --- cpukit/sapi/include/confdefs.h | 4 1 file changed, 4 insertions(+) diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index 3dfcf9b2d5..13e97

[PATCH 16/16] score: Move thread queue timeout handling

2017-10-23 Thread Sebastian Huber
Update #3117. Update #3182. --- cpukit/libnetworking/rtems/rtems_glue.c |2 +- cpukit/posix/include/rtems/posix/mqueueimpl.h | 25 +- cpukit/posix/include/rtems/posix/muteximpl.h| 32 +- cpukit/posix/src/condwaitsupp.c | 126 +- cpukit/posix/src/mqueuereceive

Re: [PATCH 06/16] confdefs: Warn about problematic ticks per second

2017-10-23 Thread Joel Sherrill
On Mon, Oct 23, 2017 at 8:53 AM, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > A non-integer clock ticks per second value may lead to inaccurate time > format conversions. > > Update #3117. > Update #3182. > --- > cpukit/sapi/include/confdefs.h | 4 > 1 file changed, 4 inser

Re: [PATCH 04/16] score: Add _Watchdog_Ticks_per_second

2017-10-23 Thread Joel Sherrill
On Mon, Oct 23, 2017 at 8:53 AM, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > This value is frequently used. Avoid the function call overhead and the > integer division at run-time. > > Update #3117. > Update #3182. > --- > cpukit/rtems/Makefile.am| 1 - >

Re: RTEMS Tier Allocations.

2017-10-23 Thread Chris Johns
On 23/10/2017 17:12, Sebastian Huber wrote: > I would like to try the RTEMS tester on a Altera Cyclone V board with U-Boot. > I > can turn on/off the power via a network controlled power switch. The console > is > connected to a Raspberry Pi. It can also run the RTEMS tester. What do I > need