[rtems-docs] user/rsb: Mention --with/without-newlib-tls

2022-07-21 Thread Sebastian Huber
Update #4560. --- user/rsb/project-sets.rst | 9 + 1 file changed, 9 insertions(+) diff --git a/user/rsb/project-sets.rst b/user/rsb/project-sets.rst index 54a3f8e..ce839c5 100644 --- a/user/rsb/project-sets.rst +++ b/user/rsb/project-sets.rst @@ -116,6 +116,15 @@ build sets:

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

2022-07-21 Thread Chris Johns
On 22/7/2022 1:11 am, Ryan Long wrote: > On 7/20/2022 11:39 PM, Chris Johns wrote: >> On 21/7/2022 7:36 am, Ryan Long wrote: >>> rtl-mdreloc-aarch64.c and elf_machdep.h came from NetBSD. >>> +bool >>> +rtems_rtl_elf_unwind_deregister (rtems_rtl_obj* obj) >>> +{ >>> +  obj->loader = NULL; >> You

Re: [PATCH rtems-lwip] README: Add build instruction

2022-07-21 Thread Vijay Kumar Banerjee
Patch pushed. The repository is working, and I see the commit email in vc. Thanks, Vijay On Thu, Jul 21, 2022 at 2:06 PM Vijay Kumar Banerjee wrote: > > I will push this patch. The main intention of this patch is to test > the new top-level repo, but it also provides some essential build >

Re: [PATCH rtems-lwip] README: Add build instruction

2022-07-21 Thread Vijay Kumar Banerjee
I will push this patch. The main intention of this patch is to test the new top-level repo, but it also provides some essential build instructions which will certainly be handy. On Thu, Jul 21, 2022 at 2:05 PM Vijay Kumar Banerjee wrote: > > Hi Kinsey, > > thanks for the review > > On Thu, Jul

Re: [PATCH rtems-lwip] README: Add build instruction

2022-07-21 Thread Chris Johns
On 22/7/2022 8:59 am, Vijay Kumar Banerjee wrote: > Patch pushed. The repository is working, and I see the commit email in vc. Nice. Thanks for the feedback. Chris ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH rtems-lwip] README: Add build instruction

2022-07-21 Thread Vijay Kumar Banerjee
Hi Kinsey, thanks for the review On Thu, Jul 21, 2022 at 1:50 PM Kinsey Moore wrote: > > Looks good to me. I never realized that the list of BSPs and tools > directory could be omitted if things were installed in particular locations. > Yes, it picks up all the installed BSPs if there is that

Re: [PATCH] score: Remove PRIORITY_PSEUDO_ISR thread priority

2022-07-21 Thread Joel Sherrill
On Thu, Jul 21, 2022 at 12:53 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > 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 >

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

2022-07-21 Thread Ryan Long
On 7/20/2022 11:39 PM, Chris Johns wrote: 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

Re: [PATCH rtems-lwip] README: Add build instruction

2022-07-21 Thread Kinsey Moore
On 7/21/2022 14:16, Vijay Kumar Banerjee wrote: --- README | 18 ++ 1 file changed, 18 insertions(+) diff --git a/README b/README index 91e42ae..99800bf 100644 --- a/README +++ b/README @@ -12,3 +12,21 @@ The sources presented here originate in one of several locations

Re: [PATCH] Arm/raspberrypi.h: Added relevant headers for the bcm2711

2022-07-21 Thread Joel Sherrill
This looks generally ok but is all this visible to any application that includes bsp.h? It might all need to be moved into a separate header to avoid contaminating everyone's namespace. On Thu, Jul 21, 2022, 10:56 AM Noor Aman wrote: > A brief gist of what i found compatible with the older

Re: [Feedback needed] Proposal for ADC API

2022-07-21 Thread Duc Doan
Hello Sebastian, On Tue, 2022-07-19 at 14:00 +0200, Sebastian Huber wrote: > Hello, > > we should also consider to use existing APIs and implementations for > stuff we do not yet have in RTEMS, for example: > > https://docs.zephyrproject.org/latest/hardware/peripherals/adc.html > > The Zephyr

[PATCH rtems-lwip] README: Add build instruction

2022-07-21 Thread Vijay Kumar Banerjee
--- README | 18 ++ 1 file changed, 18 insertions(+) diff --git a/README b/README index 91e42ae..99800bf 100644 --- a/README +++ b/README @@ -12,3 +12,21 @@ The sources presented here originate in one of several locations described by the ORIGIN.* files and whose license is

Re: [PATCH] Arm/raspberrypi.h: Added relevant headers for the bcm2711

2022-07-21 Thread Noor Aman
I dont think this would be visible to any other application until or unless user explicitly include this header 'raspberrypi.h' in their application. And as of now, this header is only placed in bsps/arm/raspberrypi/includes. For my project I'm thinking of using this header with my project with

Re: [PATCH] Arm/raspberrypi.h: Added relevant headers for the bcm2711

2022-07-21 Thread Joel Sherrill
On Thu, Jul 21, 2022 at 12:32 PM Noor Aman wrote: > I dont think this would be visible to any other application until or > unless user explicitly include this header 'raspberrypi.h' in their > application. And as of now, this header is only placed in > bsps/arm/raspberrypi/includes. > Sorry. My

Re: [PATCH rtems-lwip] README: Add build instruction

2022-07-21 Thread Kinsey Moore
Looks good to me. I never realized that the list of BSPs and tools directory could be omitted if things were installed in particular locations. On 7/21/2022 14:16, Vijay Kumar Banerjee wrote: --- README | 18 ++ 1 file changed, 18 insertions(+) diff --git a/README b/README

[PATCH] Arm/raspberrypi.h: Added relevant headers for the bcm2711

2022-07-21 Thread Noor Aman
A brief gist of what i found compatible with the older code ---COMPATIBLE HEADER--- - BCM2835 timer - GPIO - AUX - GPU timer ---DIDNT CHECK--- - SPI - I2C ---MINOR CHNAGE--- - IRQ - FIQ ---NOT SURE ABOUT--- - Watchdog - Power management - Mailbox register I didnt get any info about power

Re: [PATCH] Arm/raspberrypi.h: Added relevant headers for the bcm2711

2022-07-21 Thread Noor Aman
Sorry for that. I wanted a review for this so that's why included the gist too. I think instead of writing as a patch, I'll be using review. Thank you for the info. On Fri, Jul 22, 2022, 8:14 AM Chris Johns wrote: > On 22/7/2022 12:42 pm, Chris Johns wrote: > > On 22/7/2022 1:55 am, Noor Aman

Re: [PATCH] Arm/raspberrypi.h: Added relevant headers for the bcm2711

2022-07-21 Thread Alan Cudmore
Joel, I don't think we need to commit the file now. Some suggestions: - Let's not put RPI2 or RPI3 defines or ifdefs in the file if it's only going to be for the Aarch64 RPI4 BSP - If it will be only used for the RPI4, it might be confusing to have the BCM2836 defines rather than using BCM2711 -

Re: [PATCH] Arm/raspberrypi.h: Added relevant headers for the bcm2711

2022-07-21 Thread Chris Johns
On 22/7/2022 1:55 am, Noor Aman wrote: > A brief gist of what i found compatible with the older code > ---COMPATIBLE HEADER--- > - BCM2835 timer > - GPIO > - AUX > - GPU timer > ---DIDNT CHECK--- > - SPI > - I2C > ---MINOR CHNAGE--- > - IRQ > - FIQ > ---NOT SURE ABOUT--- > - Watchdog > - Power

Re: [PATCH] Arm/raspberrypi.h: Added relevant headers for the bcm2711

2022-07-21 Thread Chris Johns
On 22/7/2022 12:42 pm, Chris Johns wrote: > On 22/7/2022 1:55 am, Noor Aman wrote: >> A brief gist of what i found compatible with the older code >> ---COMPATIBLE HEADER--- >> - BCM2835 timer >> - GPIO >> - AUX >> - GPU timer >> ---DIDNT CHECK--- >> - SPI >> - I2C >> ---MINOR CHNAGE--- >> - IRQ >>

Re: [PATCH v2 0/3] Support --enable-newlib-reent-thread-local Newlib configuration option

2022-07-21 Thread Chris Johns
+1 Really great patch and change. I think the performance improvements will be excellent. As an aside, does gdb know about TLS variables and so will `errno` be visible? Chris On 21/7/2022 5:09 pm, Sebastian Huber wrote: > This patch set adds support for the --enable-newlib-reent-thread-local >

Re: [PATCH v2 0/3] Support --enable-newlib-reent-thread-local Newlib configuration option

2022-07-21 Thread Sebastian Huber
On 21.07.22 10:03, Chris Johns wrote: As an aside, does gdb know about TLS variables and so will `errno` be visible? Good question, there seems to be some support missing. For example for arm/xilinx_zynq_a9_qemu: Breakpoint 7, Init (ignored=2118804) at

Re: [PATCH v2 0/3] Support --enable-newlib-reent-thread-local Newlib configuration option

2022-07-21 Thread Chris Johns
On 21/7/2022 6:11 pm, Sebastian Huber wrote: > On 21.07.22 10:03, Chris Johns wrote: >> As an aside, does gdb know about TLS variables and so will `errno` be >> visible? > > Good question, there seems to be some support missing. For example for > arm/xilinx_zynq_a9_qemu: > > Breakpoint 7, Init

Re: [PATCH v2 0/3] Support --enable-newlib-reent-thread-local Newlib configuration option

2022-07-21 Thread Sebastian Huber
On 21.07.22 10:16, Chris Johns wrote: On 21/7/2022 6:11 pm, Sebastian Huber wrote: On 21.07.22 10:03, Chris Johns wrote: As an aside, does gdb know about TLS variables and so will `errno` be visible? Good question, there seems to be some support missing. For example for

Re: [PATCH v2 0/3] Support --enable-newlib-reent-thread-local Newlib configuration option

2022-07-21 Thread Chris Johns
On 21/7/2022 6:21 pm, Sebastian Huber wrote: > On 21.07.22 10:16, Chris Johns wrote: >> On 21/7/2022 6:11 pm, Sebastian Huber wrote: >>> On 21.07.22 10:03, Chris Johns wrote: As an aside, does gdb know about TLS variables and so will `errno` be visible? >>> Good question, there seems to

Re: [PATCH v2 0/3] Support --enable-newlib-reent-thread-local Newlib configuration option

2022-07-21 Thread Sebastian Huber
On 21.07.22 10:27, Chris Johns wrote: On 21/7/2022 6:21 pm, Sebastian Huber wrote: On 21.07.22 10:16, Chris Johns wrote: On 21/7/2022 6:11 pm, Sebastian Huber wrote: On 21.07.22 10:03, Chris Johns wrote: As an aside, does gdb know about TLS variables and so will `errno` be visible? Good

Re: [PATCH v2 0/3] Support --enable-newlib-reent-thread-local Newlib configuration option

2022-07-21 Thread Chris Johns
On 21/7/2022 6:30 pm, Sebastian Huber wrote: > On 21.07.22 10:27, Chris Johns wrote: >> On 21/7/2022 6:21 pm, Sebastian Huber wrote: >>> On 21.07.22 10:16, Chris Johns wrote: On 21/7/2022 6:11 pm, Sebastian Huber wrote: > On 21.07.22 10:03, Chris Johns wrote: >> As an aside, does gdb

Re: [PATCH v2 0/3] Support --enable-newlib-reent-thread-local Newlib configuration option

2022-07-21 Thread Sebastian Huber
On 21.07.22 10:36, Chris Johns wrote: On 21/7/2022 6:30 pm, Sebastian Huber wrote: On 21.07.22 10:27, Chris Johns wrote: On 21/7/2022 6:21 pm, Sebastian Huber wrote: On 21.07.22 10:16, Chris Johns wrote: On 21/7/2022 6:11 pm, Sebastian Huber wrote: On 21.07.22 10:03, Chris Johns wrote:

[PATCH v2 1/3] 6/7: Update Newlib

2022-07-21 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-head.cfg | 27 +++

[PATCH v2 0/3] Support --enable-newlib-reent-thread-local Newlib configuration option

2022-07-21 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 v2 2/3] newlib: Support --with/without-newlib-tls

2022-07-21 Thread Sebastian Huber
This RSB option defines if the --enable-newlib-reent-thread-local (_REENT_THREAD_LOCAL_STORAGE) Newlib configuration option is used or not. Update #4560. --- source-builder/config/checks.cfg | 9 + source-builder/config/gcc-common-1.cfg | 1 + 2 files changed, 10 insertions(+)

[PATCH v2 3/3] 6/7: Use TLS in Newlib for some targets by default

2022-07-21 Thread Sebastian Huber
Use the --enable-newlib-reent-thread-local (_REENT_THREAD_LOCAL_STORAGE) Newlib configuration option on the aarch64, arm, nios2, powerpc, riscv, and sparc targets by default. Update #4560. --- rtems/config/6/rtems-aarch64.bset | 1 + rtems/config/6/rtems-arm.bset | 1 +

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

2022-07-21 Thread Chris Johns
On 21/7/2022 3:21 pm, Sebastian Huber wrote: > 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