Re: [PATCH] microblaze: Add AXI GPIO driver

2022-03-30 Thread Gedare Bloom
On Wed, Mar 16, 2022 at 10:25 AM Alex White wrote: > > On Wed, Mar 16, 2022 at 10:27 AM Gedare Bloom wrote: > > > > On Tue, Mar 15, 2022 at 2:28 PM Alex White wrote: > > > > > > --- > > > bsps/include/dev/gpio/xilinx-axi-gpio.h | 311 ++ > > > bsps/shared/dev/gpio/xilinx-a

AW: AW: AW: Dependencies of PPS API in rtems-libbsd

2022-03-30 Thread Gabriel.Moyano
> > On 30/03/2022 15:19, gabriel.moy...@dlr.de wrote: > >>> Ok, it seems the pps_event() could be called by interrupt service > >>> routines. In this case, you cannot use a mutex and condition variables. > >>> You have to use a thread queue directly. Use the thread queue ISR > >>> lock for mutual

Re: AW: AW: Dependencies of PPS API in rtems-libbsd

2022-03-30 Thread Sebastian Huber
On 30/03/2022 15:19, gabriel.moy...@dlr.de wrote: Ok, it seems the pps_event() could be called by interrupt service routines. In this case, you cannot use a mutex and condition variables. You have to use a thread queue directly. Use the thread queue ISR lock for mutual exclusion. Use _Thread_qu

AW: AW: Dependencies of PPS API in rtems-libbsd

2022-03-30 Thread Gabriel.Moyano
> > >> I guess you want to enable tc_poll_pps in struct timecounter as well? > > > > > > I didn't plan to do that but it can be done just removing some #ifndef, > > > right? > > > > Is this handler not use for the PPS support? If it is currently unused, > > then please let it disabled. > > Ok. F

[PATCH 3/3] unit: Test red-black trees

2022-03-30 Thread Sebastian Huber
--- .../build/testsuites/unit/unit-no-clock-0.yml |1 + testsuites/unit/tc-score-rbtree.c | 1195 + 2 files changed, 1196 insertions(+) create mode 100644 testsuites/unit/tc-score-rbtree.c diff --git a/spec/build/testsuites/unit/unit-no-clock-0.yml b/spec/build/t

[PATCH 1/3] unit: Add a unit test suite

2022-03-30 Thread Sebastian Huber
--- spec/build/testsuites/grp.yml | 4 + spec/build/testsuites/optunit.yml | 15 spec/build/testsuites/unit/grp.yml| 20 + .../build/testsuites/unit/unit-no-clock-0.yml | 20 + testsuites/unit/ts-unit-no-clock-0.c | 81

[PATCH 2/3] unit: Add test for misaligned builtin memcpy()

2022-03-30 Thread Sebastian Huber
--- .../build/testsuites/unit/unit-no-clock-0.yml | 1 + .../unit/tc-misaligned-builtin-memcpy.c | 51 +++ 2 files changed, 52 insertions(+) create mode 100644 testsuites/unit/tc-misaligned-builtin-memcpy.c diff --git a/spec/build/testsuites/unit/unit-no-clock-0.yml b/spe

[PATCH 0/3] Add a unit testsuite

2022-03-30 Thread Sebastian Huber
Sebastian Huber (3): unit: Add a unit test suite unit: Add test for misaligned builtin memcpy() unit: Test red-black trees spec/build/testsuites/grp.yml |4 + spec/build/testsuites/optunit.yml | 15 + spec/build/testsuites/unit/grp.yml| 20 +