Re: [PATCH] part of implimenting a monotonic clock in rtems part of this is not the final patch.

2021-06-19 Thread zack_on_the_speed_chanel
I have added the tests and added the ones that create the timer. My idea for testing is that if I change the wall clock and I'll check the monotonic clock's time. But I think I have to make a signal and arm the timer. Thanks Zack Sent with ProtonMail Secure Email. ‐‐‐ Original Message ‐‐‐

Re: GSoC POSIX Compliance: Can't Build RTEMS Tool Suite Anymore

2021-06-19 Thread Matthew Joyce
Thanks for your note, Sir! I'll never get that day back, but I'm glad to be back on track now and have made a bit of progress. I made the change locally in libc/sys/signal.h to use the *__restrict. I then configured and (successfully!) built newlib for sparc-rtems6. I see the various build binarie

Re: [PATCH rtems 2/2] bsps/imxrt: Simplify linkcmds and make it flexible

2021-06-19 Thread dufault
I'm getting back to this as I have the HyperRAM working so I'm trying to set up appropriate linker settings. > On Jun 10, 2021, at 01:43 , Sebastian Huber > wrote: > > The initial stack needs to be in an accessible memory area. Currently it is > placed in this linker output section: > >

[PATCH v2 08/12] bsps/irq: Remove BSP_INTERRUPT_VECTOR_NUMBER

2021-06-19 Thread Sebastian Huber
Replace it with BSP_INTERRUPT_VECTOR_COUNT. Update #3269. --- bsps/include/bsp/irq-generic.h | 4 +--- bsps/shared/irq/irq-generic.c | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bsps/include/bsp/irq-generic.h b/bsps/include/bsp/irq-generic.h index 31010d1c08..749dc78988

[PATCH v2 04/12] bsps/irq: Assert BSP_INTERRUPT_VECTOR_MIN == 0

2021-06-19 Thread Sebastian Huber
After building all BSPs with this patch, this BSP-specific define can be removed to simplify the implementation. Update #3269. --- bsps/include/bsp/irq-generic.h | 4 1 file changed, 4 insertions(+) diff --git a/bsps/include/bsp/irq-generic.h b/bsps/include/bsp/irq-generic.h index e888a66ce

[PATCH v2 03/12] bsp/generic_or1k: Remove incomplete IRQ support

2021-06-19 Thread Sebastian Huber
Update #3269. --- bsps/or1k/generic_or1k/include/bsp/irq.h | 3 +- bsps/or1k/generic_or1k/irq/irq.c | 43 --- .../lib/libbsp/or1k/generic_or1k/Makefile.am | 6 +-- .../bsps/or1k/generic_or1k/bspgenericor1k.yml | 4 +- 4 files changed, 3 insertions(+), 53 delet

[PATCH v2 06/12] smpcapture02: Fix use of BSP_INTERRUPT_VECTOR_MAX

2021-06-19 Thread Sebastian Huber
This define represents the last valid interrupt vector number. Update #3269. --- testsuites/smptests/smpcapture02/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuites/smptests/smpcapture02/init.c b/testsuites/smptests/smpcapture02/init.c index 9cf1f0b006..329fd34

[PATCH v2 10/12] bsps/irq: Remove BSP_INTERRUPT_VECTOR_MAX

2021-06-19 Thread Sebastian Huber
This define is no longer used. Update #3269. --- bsps/aarch64/a53/include/bsp/irq.h | 1 - bsps/aarch64/a72/include/bsp/irq.h | 1 - bsps/aarch64/xilinx-zynqmp/include/bsp/irq.h| 1 - bsps/arm/altera-cyclone-v/include/bsp/irq.h | 1 - bsps/arm/atsam/include/bsp/i

[PATCH v2 05/12] bsps/irq: Remove BSP_INTERRUPT_VECTOR_MIN

2021-06-19 Thread Sebastian Huber
Remove BSP_INTERRUPT_VECTOR_MIN and unconditionally let interrupt vector numbers start with zero. The BSP_INTERRUPT_VECTOR_MIN == 0 invariant was tested by the previous commit and building all BSPs. Update #3269. --- bsps/aarch64/a53/include/bsp/irq.h| 1 - bsps/aarch64/a72/include/

[PATCH v2 07/12] bsps/irq: Add BSP_INTERRUPT_VECTOR_COUNT

2021-06-19 Thread Sebastian Huber
Assert BSP_INTERRUPT_VECTOR_MAX + 1 == BSP_INTERRUPT_VECTOR_COUNT. After building all BSPs with this patch, BSP_INTERRUPT_VECTOR_MAX can be removed and replaced by BSP_INTERRUPT_VECTOR_COUNT. The BSP_INTERRUPT_VECTOR_COUNT allows a default implementation which supports no interrupt vector at all.

[PATCH v2 12/12] bsp/atsam: Fix BSP_INTERRUPT_VECTOR_COUNT

2021-06-19 Thread Sebastian Huber
Fix an off by one error. Update #3269. --- bsps/arm/atsam/include/bsp/irq.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsps/arm/atsam/include/bsp/irq.h b/bsps/arm/atsam/include/bsp/irq.h index fa3d56ab1e..e788570469 100644 --- a/bsps/arm/atsam/include/bsp/irq.h +++ b/bsps

[PATCH v2 09/12] bsps/irq: Use BSP_INTERRUPT_VECTOR_COUNT

2021-06-19 Thread Sebastian Huber
Use BSP_INTERRUPT_VECTOR_COUNT instead of BSP_INTERRUPT_VECTOR_MAX. Update #3269. --- bsps/arm/atsam/start/bspstart.c | 2 +- bsps/arm/beagle/irq/irq.c | 2 +- bsps/arm/lpc176x/irq/irq.c | 2 +- bsps/arm/lpc24xx/irq/irq.c | 4 ++-- bsps/arm/lpc32xx/

[PATCH v2 02/12] bsp/genmcf548x: Change BSP_INTERRUPT_VECTOR_MIN

2021-06-19 Thread Sebastian Huber
This BSP uses a customized implementation of the interrupt extension API. It was the only BSP which defined BSP_INTERRUPT_VECTOR_MIN to a value other than zero. Define it to zero and use a custom is_valid_vector() function instead. Update #3269. --- bsps/m68k/genmcf548x/include/bsp/irq.h | 2 +

[PATCH v2 01/12] bsps/irq: Remove BSP_INTERRUPT_NO_HEAP_USAGE

2021-06-19 Thread Sebastian Huber
Remove the support for BSP_INTERRUPT_NO_HEAP_USAGE. This was only used by one BSP and provides no real benefit. Update #3269. --- bsps/include/bsp/irq-generic.h| 8 -- bsps/powerpc/mpc55xxevb/include/bsp/irq.h | 1 - bsps/shared/irq/irq-generic.c | 34 ++

[PATCH v2 11/12] bsps/irq: Default BSP_INTERRUPT_VECTOR_COUNT == 0

2021-06-19 Thread Sebastian Huber
Change the default value of BSP_INTERRUPT_VECTOR_COUNT so that no interrupt vectors are supported and all related directives return RTEMS_INVALID_ID. Update #3269. --- bsps/include/bsp/irq-default.h | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bsps/include/bsp/irq-de

[PATCH v2 00/12] Simplify generic interrupt controller support

2021-06-19 Thread Sebastian Huber
Chris thankfully reminded me that my first patch set was far too sloppy: https://lists.rtems.org/pipermail/devel/2021-June/067858.html I did split it up into parts which are easier to review and test. This patch set simplifies the generic interrupt controller support a bit to prepare for more co