[PATCH] spextensions01: Fix assertion

2022-07-13 Thread Sebastian Huber
Commit 80090639a62b50d7d66614ca789e4592924a06e5 altered the system state change. Account for this in assert_allocator_protected_thread_context(). --- testsuites/sptests/spextensions01/init.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] samples/cdtest: Test execeptions during system init

2022-07-13 Thread Sebastian Huber
On 01/07/2022 12:02, Sebastian Huber wrote: +static void early_exception() +{ +try +{ + throw "early exception"; +} +catch( const char *e ) +{ + rtems_test_assert(strcmp(e, "early exception") == 0); + throw "early exception 2"; +} +} + +static void

[PATCH] cdtest: Restrict exceptions during sysinit

2022-07-13 Thread Sebastian Huber
Exceptions during system initialization work only on targets which do not need a registration of exception frames during the global construction. In particular, targets which use the DWARF2 unwinder cannot use exceptions during system initialization. --- testsuites/samples/cdtest/main.cc | 14

[PATCH 1/2] sptests: Disable Newlib reentrancy

2022-07-13 Thread Sebastian Huber
From: Matt Joyce Update #4560. --- testsuites/sptests/sp01/system.h | 7 +++ testsuites/sptests/spstkalloc02/init.c | 7 +++ testsuites/sptests/spstkalloc02/spstkalloc02.doc | 2 +- testsuites/sptests/sptls03/init.c| 7 +++ 4 files changed,

[PATCH 0/2] Add support for using TLS in Newlib

2022-07-13 Thread Sebastian Huber
This patch set adds support for the --enable-newlib-reent-thread-local (_REENT_THREAD_LOCAL_STORAGE) Newlib configuration option. By default, Newlib uses a huge object of type struct _reent to store thread-specific data. This object is returned by __getreent() if the __DYNAMIC_REENT__ Newlib

[PATCH 2/2] Support _REENT_THREAD_LOCAL Newlib configuration

2022-07-13 Thread Sebastian Huber
From: Matt Joyce In case the Newlib _REENT_THREAD_LOCAL configuration option is enabled, the struct _reent is not defined (there is only a forward declaration in ). Instead, the usual members of struct _reent are available as dedicatd thread-local storage objects. Update #4560. ---

[PATCH 1/3] score: Fix _Objects_Active_count()

2022-07-13 Thread Sebastian Huber
With unlimited objects the object maximum may be larger than the sum of active and inactive objects. --- cpukit/score/src/objectactivecount.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/cpukit/score/src/objectactivecount.c

[PATCH 3/3] score: Fix unlimited objects support

2022-07-13 Thread Sebastian Huber
Commit 21275b58a5a69c3c838082ffc8a7a3641f32ea9a ("score: Static Objects_Information initialization") introduced an off-by-one error in the maintenance of inactive objects. Close #4677. --- cpukit/include/rtems/score/objectimpl.h | 29 + cpukit/score/src/objectfree.c

[PATCH 2/3] spunlimited01: New test

2022-07-13 Thread Sebastian Huber
Update #4677. --- spec/build/testsuites/sptests/grp.yml | 2 + .../testsuites/sptests/spunlimited01.yml | 20 +++ testsuites/sptests/spunlimited01/init.c | 125 ++ .../sptests/spunlimited01/spunlimited01.doc | 14 ++ 4 files changed, 161 insertions(+)

[RSB 1/3] 6/7: Update Newlib

2022-07-13 Thread Sebastian Huber
This makes the --enable-newlib-reent-thread-local (_REENT_THREAD_LOCAL_STORAGE) Newlib configuration option available. Update #4560. --- .../config/tools/rtems-gcc-10-newlib-head.cfg | 4 +-- .../tools/rtems-gcc-10.4-newlib-ea99f21.cfg | 27 +++

[RSB 3/3] 6/7: Use TLS in Newlib

2022-07-13 Thread Sebastian Huber
Use the --enable-newlib-reent-thread-local (_REENT_THREAD_LOCAL_STORAGE) Newlib configuration option on all targets which support thread-local storage. Update #4560. --- rtems/config/6/rtems-aarch64.bset| 1 + rtems/config/6/rtems-arm.bset| 1 + rtems/config/6/rtems-i386.bset |

[RSB 2/3] newlib: Support "with_newlib_tls"

2022-07-13 Thread Sebastian Huber
Update #4560. --- source-builder/config/gcc-common-1.cfg | 1 + 1 file changed, 1 insertion(+) diff --git a/source-builder/config/gcc-common-1.cfg b/source-builder/config/gcc-common-1.cfg index 694a1f3..f6ec883 100644 --- a/source-builder/config/gcc-common-1.cfg +++

Re: Build Linux: FAILED 6/rtems-m68k on x86_64-linux-gnu (m68k-rtems6-gcc-1ad2ee2-newlib-ea99f21-x86_64-linux-gnu-1)

2022-07-13 Thread Sebastian Huber
On 13/07/2022 11:58, sebastian.hu...@embedded-brains.de wrote: RTEMS Source Builder - Set Builder, 6 (53c42b08508f) warning: exe: absolute exe found in path: (__chown) /usr/sbin/chown Host: Linux-5.3.18-150300.59.76-default-x86_64-with-glibc2.3.4 Linux lupus 5.3.18-150300.59.76-default

Re: [PATCH] cdtest: Restrict exceptions during sysinit

2022-07-13 Thread Chris Johns
On 13/7/2022 9:41 pm, Sebastian Huber wrote: > Exceptions during system initialization work only on targets which do not need > a registration of exception frames during the global construction. In > particular, targets which use the DWARF2 unwinder cannot use exceptions during > system

Re: [PATCH] samples/cdtest: Test execeptions during system init

2022-07-13 Thread Chris Johns
On 13/7/2022 6:42 pm, Sebastian Huber wrote: > On 01/07/2022 12:02, Sebastian Huber wrote: >> +static void early_exception() >> +{ >> +    try >> +    { >> +  throw "early exception"; >> +    } >> +    catch( const char *e ) >> +    { >> +  rtems_test_assert(strcmp(e, "early exception") ==

Re: Time to promote lwip git repo

2022-07-13 Thread Christian MAUDERER
Am 13.07.22 um 04:51 schrieb Chris Johns: On 13/7/2022 10:08 am, Joel Sherrill wrote: Vijay and Kinsey have made great progress in addressing the issues that were raised about the lwip tcpip stack that needed to be addressed before it became an official top level repository. Thanks to both of