Re: [PATCH] score: Remove PRIORITY_PSEUDO_ISR thread priority

2022-07-20 Thread Sebastian Huber
Hello Gedare and Joel, On 15.07.22 10:43, Sebastian Huber wrote: The uniprocessor schedulers had some special case logic for the PRIORITY_PSEUDO_ISR priority. Tasks with a priority of PRIORITY_PSEUDO_ISR were allowed to preempt a not preemptible task. If other higher priority task are made

[PATCH v2] build: Add TLS_MODEL_FLAGS

2022-07-20 Thread Sebastian Huber
Update #4560. --- v2: * Do not use -ftls-model=local-exec for targets without TLS support. spec/build/bsps/bspopts.yml | 2 ++ spec/build/bsps/opttlsmodelflags.yml | 28 2 files changed, 30 insertions(+) create mode 100644

[PATCH] build: Add TLS_MODEL_FLAGS

2022-07-20 Thread Sebastian Huber
Update #4560. --- spec/build/bsps/bspopts.yml | 2 ++ spec/build/bsps/opttlsmodelflags.yml | 17 + 2 files changed, 19 insertions(+) create mode 100644 spec/build/bsps/opttlsmodelflags.yml diff --git a/spec/build/bsps/bspopts.yml b/spec/build/bsps/bspopts.yml index

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

2022-07-20 Thread Sebastian Huber
On 20.07.22 22:52, Chris Johns wrote: On 20/7/2022 6:20 pm, Sebastian Huber wrote: On 20/07/2022 10:11, Chris Johns wrote: Are these TLS allocations in newlib based on a single use of a newlib call that brings in the reent stuff? How does that work? No, each TLS object is defined in the

Re: [PATCH v2] aarch64: Use page table level 0

2022-07-20 Thread Sebastian Huber
On 20.07.22 15:43, Kinsey Moore wrote: This alters the AArch64 page table generation and mapping code and MMU configuration to use page table level 0 in addition to levels 1, 2, and 3. This allows the mapping of up to 48 bits of memory space and is the maximum that can be mapped without relying

Re: [PATCH v1 0/5] Add AArch64 support to libdl

2022-07-20 Thread Chris Johns
On 21/7/2022 7:36 am, Ryan Long wrote: > This series of patches adds support for AArch64 in libdl and makes some small > tweaks to get the dynamic loader tests working. Thank you for this contribution. It is great to see this arch being supported. It is close. I have posted some questions about

Re: [PATCH v1 3/5] cpukit/libdl: Add support for AArch64

2022-07-20 Thread Chris Johns
On 21/7/2022 7:36 am, Ryan Long wrote: > rtl-mdreloc-aarch64.c and elf_machdep.h came from NetBSD. > > Updates #4682 > --- > cpukit/libdl/rtl-mdreloc-aarch64.c| 598 ++ > .../cpu/aarch64/include/machine/elf_machdep.h | 256 > spec/build/cpukit/objdl.yml

[PATCH v1 3/5] cpukit/libdl: Add support for AArch64

2022-07-20 Thread Ryan Long
rtl-mdreloc-aarch64.c and elf_machdep.h came from NetBSD. Updates #4682 --- cpukit/libdl/rtl-mdreloc-aarch64.c| 598 ++ .../cpu/aarch64/include/machine/elf_machdep.h | 256 spec/build/cpukit/objdl.yml | 2 +

[PATCH v1 5/5] cpukit/libdl/rtl-sym.c: Fix increment of variable

2022-07-20 Thread Ryan Long
In rtems_rtl_symbol_global_add() the loop that gets to the end of the symbol table used "unsigned long" to increment the index for the table. For most architectures this resulted in 4, but with AArch64, it results in 8. This resulted in the symbols being read in wrong. Changing this to void* along

[PATCH v1 1/5] sys/exec_elf.h: Bring in newer file

2022-07-20 Thread Ryan Long
Updated this file with the newer version in NetBSD. Updates #4682 --- cpukit/include/sys/exec_elf.h | 840 -- 1 file changed, 608 insertions(+), 232 deletions(-) diff --git a/cpukit/include/sys/exec_elf.h b/cpukit/include/sys/exec_elf.h index

[PATCH v1 0/5] Add AArch64 support to libdl

2022-07-20 Thread Ryan Long
Hi, This series of patches adds support for AArch64 in libdl and makes some small tweaks to get the dynamic loader tests working. Thanks, Ryan Ryan Long (5): sys/exec_elf.h: Bring in newer file libdl/rtl-elf.h: Fix aarch64 define cpukit/libdl: Add support for AArch64 libtests/dl*: Bump

[PATCH v1 2/5] libdl/rtl-elf.h: Fix aarch64 define

2022-07-20 Thread Ryan Long
The aarch64 define was incorrect. This was causing the libdl tests to not work correctly. Updates #4682 --- cpukit/libdl/rtl-elf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpukit/libdl/rtl-elf.h b/cpukit/libdl/rtl-elf.h index c7c17c525a..0476c1ecd7 100644 ---

[PATCH v1 4/5] libtests/dl*: Bump up the size of CONFIGURE_INIT_TASK_STACK_SIZE

2022-07-20 Thread Ryan Long
Updates #4682 --- testsuites/libtests/dl01/init.c | 2 +- testsuites/libtests/dl02/init.c | 2 +- testsuites/libtests/dl03/init.c | 2 +- testsuites/libtests/dl04/init.c | 2 +- testsuites/libtests/dl05/init.c | 2 +- testsuites/libtests/dl06/initimpl.h | 2 +-

Re: [PATCH rtems-docs v2] zynqmp: Add commentary about lwIP usage

2022-07-20 Thread Chris Johns
This is much clearer. I now understand the limitation. OK to push. Thanks Chris On 20/7/2022 11:34 pm, Kinsey Moore wrote: > --- > user/bsps/aarch64/xilinx-zynqmp.rst | 12 > 1 file changed, 12 insertions(+) > > diff --git a/user/bsps/aarch64/xilinx-zynqmp.rst >

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

2022-07-20 Thread Chris Johns
On 20/7/2022 6:20 pm, Sebastian Huber wrote: > On 20/07/2022 10:11, Chris Johns wrote: Are these TLS allocations in newlib based on a single use of a newlib call that brings in the reent stuff? How does that work? >>> No, each TLS object is defined in the translation unit which

[PATCH v2] aarch64: Use page table level 0

2022-07-20 Thread Kinsey Moore
This alters the AArch64 page table generation and mapping code and MMU configuration to use page table level 0 in addition to levels 1, 2, and 3. This allows the mapping of up to 48 bits of memory space and is the maximum that can be mapped without relying on additional processor extensions.

[PATCH rtems-docs v2] zynqmp: Add commentary about lwIP usage

2022-07-20 Thread Kinsey Moore
--- user/bsps/aarch64/xilinx-zynqmp.rst | 12 1 file changed, 12 insertions(+) diff --git a/user/bsps/aarch64/xilinx-zynqmp.rst b/user/bsps/aarch64/xilinx-zynqmp.rst index 78bff12..239ebe4 100644 --- a/user/bsps/aarch64/xilinx-zynqmp.rst +++ b/user/bsps/aarch64/xilinx-zynqmp.rst @@

Re: [PATCH rtems-docs] zynqmp: Add commentary about lwIP usage

2022-07-20 Thread Kinsey Moore
On 7/19/2022 16:22, Chris Johns wrote: On 20/7/2022 5:42 am, Kinsey Moore wrote: --- user/bsps/aarch64/xilinx-zynqmp.rst | 9 + 1 file changed, 9 insertions(+) diff --git a/user/bsps/aarch64/xilinx-zynqmp.rst b/user/bsps/aarch64/xilinx-zynqmp.rst index 78bff12..58954d6 100644 ---

[PATCH] sptls04: Test an external TLS object

2022-07-20 Thread Sebastian Huber
--- spec/build/testsuites/sptests/sptls04.yml | 1 + testsuites/sptests/sptls04/init.c | 9 +++-- testsuites/sptests/sptls04/sptls04.h | 41 +++ testsuites/sptests/sptls04/tls.c | 34 +++ 4 files changed, 82 insertions(+), 3 deletions(-)

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

2022-07-20 Thread Sebastian Huber
On 20/07/2022 10:11, Chris Johns wrote: There seems to be an issue with i386: 08:09:56 runner ['/opt/rtems/6/bin/rtems-ld', '-C', '/opt/rtems/6/bin/i386-rtems6-gcc', '-c', '-MMD -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -mtune=pentiumpro

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

2022-07-20 Thread Sebastian Huber
On 20/07/2022 10:11, Chris Johns wrote: Are these TLS allocations in newlib based on a single use of a newlib call that brings in the reent stuff? How does that work? No, each TLS object is defined in the translation unit which uses the object. The goal is to get only those objects linked in

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

2022-07-20 Thread Chris Johns
On 20/7/2022 5:03 pm, Sebastian Huber wrote: > On 20/07/2022 02:24, Chris Johns wrote: >> On 19/7/2022 5:18 pm, Sebastian Huber wrote: >>> On 13/07/2022 11:24, Sebastian Huber wrote: This makes the --enable-newlib-reent-thread-local (_REENT_THREAD_LOCAL_STORAGE) Newlib

Re: Time to promote lwip git repo

2022-07-20 Thread Thomas DOERFLER
Hi, just for the records: I also gratly appreciate this happening. The freeBDS networking capabilities have grwon bigger and bigger, increasing the need for a reduced functionality network stack. Having lwip available allows the user to choose, which package is right for his application.

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

2022-07-20 Thread Sebastian Huber
On 20/07/2022 02:24, Chris Johns wrote: On 19/7/2022 5:18 pm, Sebastian Huber wrote: On 13/07/2022 11:24, Sebastian Huber wrote: This makes the --enable-newlib-reent-thread-local (_REENT_THREAD_LOCAL_STORAGE) Newlib configuration option available. Any comments with respect to using the

Re: [PATCH] aarch64: Use page table level 0

2022-07-20 Thread Sebastian Huber
On 19/07/2022 18:58, Kinsey Moore wrote: + if ( begin >= max_mappable || end > max_mappable ) { +rtems_fatal_error_occurred( RTEMS_INVALID_ADDRESS ); + } Such a fatal error is not really helpful, since you cannot get the error location from the fatal source/code pair. I would add a new