[PATCH 2/2] confdefs: CONFIGURE_MICROSECONDS_PER_TICK

2017-10-24 Thread Sebastian Huber
Reject non-positive CONFIGURE_MICROSECONDS_PER_TICK values. --- 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 219260e652..47b7d9aacb 100755 --- a/cpukit/sapi/include/confdefs.h +++ b/cpuk

[PATCH 1/2] rtems: rtems_clock_get_ticks_per_second()

2017-10-24 Thread Sebastian Huber
Add macro implementation for rtems_clock_get_ticks_per_second() for C/C++ to avoid the function call overhead. A rtems_clock_get_ticks_per_second() is still provided for language bindings (e.g. Ada). --- cpukit/rtems/include/rtems/rtems/clock.h | 3 +++ cpukit/rtems/src/clockgettickspersecond.c

[PATCH] posix-users: Clarify timed operation errors

2017-10-24 Thread Sebastian Huber
Close #3182. --- posix-users/condition_variable.rst | 2 ++ posix-users/semaphore.rst | 8 +--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/posix-users/condition_variable.rst b/posix-users/condition_variable.rst index ced9a8a..d92d79f 100644 --- a/posix-users/condi

[PATCH] RTEMS: Change _Timecounter_Time_uptime to int32_t

2017-10-24 Thread Sebastian Huber
Signed-off-by: Sebastian Huber --- newlib/libc/sys/rtems/include/machine/_time.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newlib/libc/sys/rtems/include/machine/_time.h b/newlib/libc/sys/rtems/include/machine/_time.h index dd69bd665..d9b7fbb7e 100644 --- a/newlib/libc/s

[PATCH] score: Change _Timecounter_Time_uptime to int32_t

2017-10-24 Thread Sebastian Huber
Close #3185. --- cpukit/score/include/rtems/score/timecounter.h | 2 +- cpukit/score/src/kern_tc.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cpukit/score/include/rtems/score/timecounter.h b/cpukit/score/include/rtems/score/timecounter.h index 1c31

[PATCH] Add riscv64 toolset

2017-10-24 Thread Hesham Almatary
--- rtems/config/4.12/rtems-riscv64.bset | 16 1 file changed, 16 insertions(+) create mode 100644 rtems/config/4.12/rtems-riscv64.bset diff --git a/rtems/config/4.12/rtems-riscv64.bset b/rtems/config/4.12/rtems-riscv64.bset new file mode 100644 index 000..406c0c9 --- /dev/

psxclockrealtime01 fails to build

2017-10-24 Thread Jiri Gaisler
After the latest pull, building of psxclockrealtime01 fails. Any ideas why this is? Jiri. build log: Making all-am in psxclockrealtime01 gmake[6]: Entering directory '/home/jiri/src/rtems/b1/sparc-rtems4.12/c/erc32/testsuites/psxtests/psxclockrealtime01' sparc-rtems4.12-gcc -B../../../../../erc3

Re: psxclockrealtime01 fails to build

2017-10-24 Thread Chris Johns
On 25/10/2017 08:08, Jiri Gaisler wrote: > After the latest pull, building of psxclockrealtime01 fails. Any ideas > why this is? Please add '#define TEST_INIT' to the start of init.c just like: https://git.rtems.org/rtems/tree/testsuites/libtests/block01/init.c#n27 Thanks Chris

Re: psxclockrealtime01 fails to build

2017-10-24 Thread Jiri Gaisler
On 10/24/2017 11:16 PM, Chris Johns wrote: > On 25/10/2017 08:08, Jiri Gaisler wrote: >> After the latest pull, building of psxclockrealtime01 fails. Any ideas >> why this is? > Please add '#define TEST_INIT' to the start of init.c just like: > > https://git.rtems.org/rtems/tree/testsuites/libtes

Re: psxclockrealtime01 fails to build

2017-10-24 Thread Chris Johns
On 25/10/2017 08:24, Jiri Gaisler wrote: > Thanks, that worked fine. Can somebody commit the attached patch then ...? Pushed. Thanks. Chris ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

[PATCH v2] RTEMS: Remove internal timecounter API

2017-10-24 Thread Sebastian Huber
Change copyright. Original BSD content moved to . Signed-off-by: Sebastian Huber --- newlib/libc/sys/rtems/include/machine/_time.h | 33 --- 1 file changed, 4 insertions(+), 29 deletions(-) diff --git a/newlib/libc/sys/rtems/include/machine/_time.h b/newlib/libc/sys/rt

[PATCH v2] score: Change _Timecounter_Time_uptime to int32_t

2017-10-24 Thread Sebastian Huber
Move basic timecounter API shared with BSD network stack to . Close #3185. --- cpukit/libcsupport/Makefile.am| 1 + cpukit/libcsupport/include/machine/_kernel_time.h | 2 + cpukit/libcsupport/include/machine/_timecounter.h | 53 +++ cpukit/libcsupport/pre