[PATCH 08/13] score: Add CPU_THREAD_LOCAL_STORAGE_VARIANT

2022-09-30 Thread Sebastian Huber
Update #3835. --- bsps/powerpc/shared/cpu.c | 2 +- cpukit/include/rtems/score/tls.h | 204 -- cpukit/score/cpu/aarch64/cpu.c| 2 +- .../cpu/aarch64/include/rtems/score/cpuimpl.h | 3 + cpukit/score/cpu/arm/__aeabi_read_tp.c

[PATCH 05/13] config: Changeable size for IDLE stack allocator

2022-09-30 Thread Sebastian Huber
Allow the IDLE stack allocator to change the stack size. This can be used by applications with a very dynamic thread-local storage size to adjust the thread storage area of the IDLE tasks dynamically. Update #4524. --- cpukit/doxygen/appl-config.h | 2 +-

[PATCH 06/13] config: Add rtems_malloc_task_stack_for_idle()

2022-09-30 Thread Sebastian Huber
Update #4524. --- cpukit/doxygen/appl-config.h| 13 + cpukit/include/rtems/rtems/config.h | 29 +- cpukit/include/rtems/score/interr.h | 1 + cpukit/sapi/src/interrtext.c| 3 +- cpukit/sapi/src/malloctaskstackforidle.c| 59

[PATCH 12/13] stackchk: Add rtems_stack_checker_iterate()

2022-09-30 Thread Sebastian Huber
--- cpukit/include/rtems/stackchk.h | 75 +++ cpukit/libmisc/stackchk/check.c | 158 +++- 2 files changed, 170 insertions(+), 63 deletions(-) diff --git a/cpukit/include/rtems/stackchk.h b/cpukit/include/rtems/stackchk.h index 7968211a51..c836263925

[PATCH 09/13] score: Simplify casts

2022-09-30 Thread Sebastian Huber
--- cpukit/include/rtems/score/tls.h | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/cpukit/include/rtems/score/tls.h b/cpukit/include/rtems/score/tls.h index 9c90b6362b..abb0a748ad 100644 --- a/cpukit/include/rtems/score/tls.h +++

[PATCH 13/13] config: Add CONFIGURE_IDLE_TASK_MINIMUM_STACK_SIZE

2022-09-30 Thread Sebastian Huber
By default, the IDLE task storage areas are statically allocated. The size of the task storage area is defined by the CONFIGURE_IDLE_TASK_STACK_SIZE configuration option. The task storage area contains the task stack, the thread-local storage, and the floating-point context on architectures with

[PATCH 04/13] score: Require power of two CPU_STACK_MINIMUM_SIZE

2022-09-30 Thread Sebastian Huber
For most CPU ports this was already the case. This makes it possible to use the size as an object alignment using RTEMS_ALIGNED(). --- cpukit/score/cpu/aarch64/include/rtems/score/cpu.h | 2 +- cpukit/score/cpu/moxie/include/rtems/score/cpu.h | 2 +-

[PATCH 11/13] stackchk: Avoid internal header file

2022-09-30 Thread Sebastian Huber
--- cpukit/include/rtems/stackchk.h | 14 ++ 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/cpukit/include/rtems/stackchk.h b/cpukit/include/rtems/stackchk.h index 22d48c9d2b..7968211a51 100644 --- a/cpukit/include/rtems/stackchk.h +++ b/cpukit/include/rtems/stackchk.h

[PATCH 10/13] score: INTERNAL_ERROR_IDLE_THREAD_CREATE_FAILED

2022-09-30 Thread Sebastian Huber
Add the INTERNAL_ERROR_IDLE_THREAD_CREATE_FAILED fatal error in case the creation of an idle thread fails. This may happen due to a failing create extension provided by the application. --- cpukit/include/rtems/score/interr.h | 3 +- cpukit/sapi/src/interrtext.c |

[PATCH 01/13] sptls0*: Enable stack checker

2022-09-30 Thread Sebastian Huber
The thread-local storage area is located close to other stacks. Try to detect overwrites. --- testsuites/sptests/sptls01/init.c | 4 testsuites/sptests/sptls02/init.cc | 4 testsuites/sptests/sptls03/init.c | 4 3 files changed, 12 insertions(+) diff --git

[PATCH 03/13] sptls02: Fix alignment check

2022-09-30 Thread Sebastian Huber
--- testsuites/sptests/sptls02/init.cc | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/testsuites/sptests/sptls02/init.cc b/testsuites/sptests/sptls02/init.cc index e4791cffd6..39fc2a2a24 100644 --- a/testsuites/sptests/sptls02/init.cc +++

[PATCH 00/13] More robust idle thread creation and TLS handling

2022-09-30 Thread Sebastian Huber
This patch set started with an 8 byte overwrite of the interrupt stack while porting an application from RTEMS 5 to 6. The overwrite was due to a mismatch of the size returned by _TLS_Get_allocation_size() and the actual usage of the area. To fix this issue it was necessary to add a new CPU port

[PATCH 02/13] sptls01: Disable file system and Newlib reentrancy

2022-09-30 Thread Sebastian Huber
Update #4560. --- testsuites/sptests/sptls01/init.c | 35 ++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/testsuites/sptests/sptls01/init.c b/testsuites/sptests/sptls01/init.c index 64860ec9c9..a1c55940d9 100644 ---

[PATCH 07/13] sptls02: Increase alignment of a TLS object

2022-09-30 Thread Sebastian Huber
Increase the alignment of a TLS object to the minimum stack size. This may provoke overflows in the TLS area calculations. --- testsuites/sptests/sptls02/init.cc | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/testsuites/sptests/sptls02/init.cc

Re: [PATCH] sb/set-builder: Fix staging and tar file generation with a single config build

2022-09-30 Thread Chris Johns
On 30/9/2022 4:08 pm, Christian MAUDERER wrote: > Am 30.09.22 um 07:37 schrieb Chris Johns: >> On 30/9/2022 3:33 pm, Christian MAUDERER wrote: >>> Am 30.09.22 um 05:49 schrieb Chris Johns: On 29/9/2022 9:50 pm, Chris Johns wrote: > On 29/9/22 9:45 pm, Christian MAUDERER wrote: >>

Re: [PATCH] sb/set-builder: Fix staging and tar file generation with a single config build

2022-09-30 Thread Christian MAUDERER
Am 30.09.22 um 08:48 schrieb Chris Johns: On 30/9/2022 4:08 pm, Christian MAUDERER wrote: Am 30.09.22 um 07:37 schrieb Chris Johns: On 30/9/2022 3:33 pm, Christian MAUDERER wrote: Am 30.09.22 um 05:49 schrieb Chris Johns: On 29/9/2022 9:50 pm, Chris Johns wrote: On 29/9/22 9:45 pm,

[docs 2/5] c-user: INTERNAL_ERROR_RTEMS_INIT_TASK_CONSTRUCT_FAILED

2022-09-30 Thread Sebastian Huber
Document this fatal error. --- c-user/fatal-error/background.rst | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/c-user/fatal-error/background.rst b/c-user/fatal-error/background.rst index 6932846..3bc170f 100644 --- a/c-user/fatal-error/background.rst +++

[docs 4/5] c-user: INTERNAL_ERROR_IDLE_THREAD_CREATE_FAILED

2022-09-30 Thread Sebastian Huber
Document this fatal error. --- c-user/fatal-error/background.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/c-user/fatal-error/background.rst b/c-user/fatal-error/background.rst index 6b47ab3..3c4212e 100644 --- a/c-user/fatal-error/background.rst +++

[docs 1/5] c-user: Add CONFIGURE_IDLE_TASK_MINIMUM_STACK_SIZE

2022-09-30 Thread Sebastian Huber
--- c-user/config/idle-task.rst| 95 -- c-user/config/task-stack-alloc.rst | 39 ++-- 2 files changed, 124 insertions(+), 10 deletions(-) diff --git a/c-user/config/idle-task.rst b/c-user/config/idle-task.rst index 359f862..d7b43ae 100644 ---

[docs 3/5] c-user: INTERNAL_ERROR_NO_MEMORY_FOR_IDLE_TASK_STACK

2022-09-30 Thread Sebastian Huber
Document this fatal error. --- c-user/fatal-error/background.rst | 5 + 1 file changed, 5 insertions(+) diff --git a/c-user/fatal-error/background.rst b/c-user/fatal-error/background.rst index 3bc170f..6b47ab3 100644 --- a/c-user/fatal-error/background.rst +++

Re: [PATCH] sb/set-builder: Fix staging and tar file generation with a single config build

2022-09-30 Thread Christian MAUDERER
Am 30.09.22 um 07:37 schrieb Chris Johns: On 30/9/2022 3:33 pm, Christian MAUDERER wrote: Am 30.09.22 um 05:49 schrieb Chris Johns: On 29/9/2022 9:50 pm, Chris Johns wrote: On 29/9/22 9:45 pm, Christian MAUDERER wrote: Hello Chris, thanks for the quick patch. With this qemu and microblaze

Re: [PATCH] sb/set-builder: Fix staging and tar file generation with a single config build

2022-09-30 Thread Chris Johns
On 30/9/2022 5:01 pm, Christian MAUDERER wrote: > The rtems-deployment repo doesn't have a .gitlab-ci.yml. Did you keep that > separate? Sorry missed this. The plumbing is outside of that repo. Chris ___ devel mailing list devel@rtems.org

[docs 5/5] c-user: INTERNAL_ERROR_IDLE_THREAD_STACK_TOO_SMALL

2022-09-30 Thread Sebastian Huber
Document this fatal error. --- c-user/fatal-error/background.rst | 7 +++ 1 file changed, 7 insertions(+) diff --git a/c-user/fatal-error/background.rst b/c-user/fatal-error/background.rst index 3c4212e..ef1e2e1 100644 --- a/c-user/fatal-error/background.rst +++

Re: [PATCH] bsps: Improve riscv console FDT parsing

2022-09-30 Thread Padmarao.Begari
Hi Alan, I tested this patch and it is working fine on the PolarFire SoC Icicle Kit. Thanks & Regards Padmarao > On Thu, 2022-09-29 at 12:19 -0400, Alan Cudmore wrote: > Hi Padmarao, > Could you try this patch on your Polarfire board? It works on the > generic QEMU BSP and the BSP I am working

[RSB 5] Fixes to recent changes and a deployment change

2022-09-30 Thread chrisj
Hi, If these changes are OK I will push the same patches to the devel branch. Chris ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

[RSB 5 PATCH 1/3] sb/execute: Fix incremental decoder with --dry-run

2022-09-30 Thread chrisj
From: Chris Johns Closes #4734 --- source-builder/sb/execute.py | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source-builder/sb/execute.py b/source-builder/sb/execute.py index f470aba..e3809ec 100755 --- a/source-builder/sb/execute.py +++

[RSB 5 PATCH 2/3] sb/set-bulder: Fix installing builds when a single buildset

2022-09-30 Thread chrisj
From: Chris Johns - Always stage a build - Install if installable and outter most buildset instance Closes #4731 --- source-builder/sb/setbuilder.py | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/source-builder/sb/setbuilder.py

[RSB 5 PATCH 3/3] rtems/bsps: Optionally support arch/bsp if used

2022-09-30 Thread chrisj
From: Chris Johns Updates #4717 --- rtems/config/rtems-bsp.cfg | 55 -- 1 file changed, 41 insertions(+), 14 deletions(-) diff --git a/rtems/config/rtems-bsp.cfg b/rtems/config/rtems-bsp.cfg index 801cd5c..af9ad3d 100644 --- a/rtems/config/rtems-bsp.cfg +++

Re: [PATCH] sb/set-builder: Fix staging and tar file generation with a single config build

2022-09-30 Thread Chris Johns
On 30/9/2022 5:01 pm, Christian MAUDERER wrote: > Am 30.09.22 um 08:48 schrieb Chris Johns: >> On 30/9/2022 4:08 pm, Christian MAUDERER wrote: >>> Am 30.09.22 um 07:37 schrieb Chris Johns: On 30/9/2022 3:33 pm, Christian MAUDERER wrote: > Am 30.09.22 um 05:49 schrieb Chris Johns: >>

[PATCH] c-user: Add types to macros

2022-09-30 Thread Sebastian Huber
--- c-user/interrupt/directives.rst | 56 ++- c-user/message/directives.rst | 2 +- c-user/object-services/directives.rst | 6 ++- c-user/task/directives.rst| 2 +- 4 files changed, 44 insertions(+), 22 deletions(-) diff --git

Re: [PATCH] c-user: Add application config info directives

2022-09-30 Thread Sebastian Huber
On 17/09/2022 09:31, Chris Johns wrote: +rtems_configuration_get_stack_allocate_init_hook() +-- + +Gets the thread stack allocator initialization hook configured for this +application. + +.. rubric:: CALLING SEQUENCE: + +.. code-block:: c + +

Re: [PATCH] c-user: Add application config info directives

2022-09-30 Thread Sebastian Huber
On 17/09/2022 09:31, Chris Johns wrote: +rtems_get_copyright_notice() + + +Gets the RTEMS copyright notice. Subject to format changes, ie users should decode and expect backwards compatibility? I don't know. Currently it is just an arbitrary string. -- embedded

Re: [PATCH] c-user: Add application config info directives

2022-09-30 Thread Sebastian Huber
On 17/09/2022 09:31, Chris Johns wrote: +rtems_get_version_string() +-- + +Gets the RTEMS version string. + +.. rubric:: CALLING SEQUENCE: + +.. code-block:: c + +const char *rtems_get_version_string( void ); + +.. rubric:: RETURN VALUES: + +Returns the pointer to the

Re: [PATCH] c-user: Add application config info directives

2022-09-30 Thread Sebastian Huber
On 17/09/2022 09:31, Chris Johns wrote: +rtems_configuration_get_milliseconds_per_tick() +--- + +Gets the number of milliseconds per clock tick configured for this application. There are other API calls that return this value. What should a user do?

Re: [PATCH rtems-docs v2] TFTPFS: New documentation

2022-09-30 Thread Frank Kühndel
ping! Since this patch was sent in June to the list I will shortly recap the context: * I extended the TFTP file system by block and window size options. These patches are already part of RTEMS. * The patch below is the documentation for it. Version 1 of this patch has already been

[PATCH v2] c-user: Add application config info directives

2022-09-30 Thread Sebastian Huber
Close #4267. Close #4269. --- v2: * Add types to directives. * Clarify some directives. c-user/config/directives.rst | 1543 c-user/config/index.rst|2 + c-user/config/intro.rst| 43 - c-user/config/introduction.rst | 222 + 4 files

Re: [PATCH] c-user: Add application config info directives

2022-09-30 Thread Sebastian Huber
On 17/09/2022 09:31, Chris Johns wrote: diff --git a/c-user/config/introduction.rst b/c-user/config/introduction.rst new file mode 100644 index 000..d06662a --- /dev/null +++ b/c-user/config/introduction.rst @@ -0,0 +1,221 @@ +.. SPDX-License-Identifier: CC-BY-SA-4.0 + +.. Copyright (C)

Re: [PATCH 06/13] config: Add rtems_malloc_task_stack_for_idle()

2022-09-30 Thread Chris Johns
On 30/9/2022 7:21 pm, Sebastian Huber wrote: > Update #4524. > --- > cpukit/doxygen/appl-config.h| 13 + > cpukit/include/rtems/rtems/config.h | 29 +- > cpukit/include/rtems/score/interr.h | 1 + > cpukit/sapi/src/interrtext.c| 3 +- >

Re: [PATCH] spec/pkgconfig: Allow builds to override headers

2022-09-30 Thread Kinsey Moore
On 9/29/2022 16:19, Chris Johns wrote: On 29/9/22 11:24 pm, Kinsey Moore wrote: On 9/28/2022 19:03, Chris Johns wrote: On 29/9/2022 7:13 am, Kinsey Moore wrote: This allows any builds targeting an installed RTEMS BSP to override headers in the installed BSP reliably, including headers

Re: [PATCH] spec/pkgconfig: Allow builds to override headers

2022-09-30 Thread Chris Johns
On 1/10/2022 6:30 am, Kinsey Moore wrote: > On 9/29/2022 16:19, Chris Johns wrote: >> On 29/9/22 11:24 pm, Kinsey Moore wrote: >>> On 9/28/2022 19:03, Chris Johns wrote: On 29/9/2022 7:13 am, Kinsey Moore wrote: > This allows any builds targeting an installed RTEMS BSP to override >