Re: [PATCH] user/bsps/arm: improve stm32h7 BSP description

2022-05-27 Thread Karel Gardas
ping. I've submited this before my commit access and not sure either if the doc hacking although purely BSP specific counts as "A BSP-specific patch may be checked in three work days after sending it to devel@rtems.org in case nobody explicitly rejected the patch." from MAINTAINERS... So

Re: AW: [PATCH 1/1] kern_tc.c: th_generation starts with 1 after overflow for single-core

2022-05-27 Thread Sebastian Huber
On 27.05.22 11:49, gabriel.moy...@dlr.de wrote: On 27.05.22 10:51, Sebastian Huber wrote: Hello Gabriel, the uniprocessor version uses an optimization at the reader side: #if defined(RTEMS_SMP) } while (gen == 0 || gen != th->th_generation); #else } while (gen != th->th_generatio

AW: [PATCH 1/1] kern_tc.c: th_generation starts with 1 after overflow for single-core

2022-05-27 Thread Gabriel.Moyano
> On 27.05.22 10:51, Sebastian Huber wrote: > > Hello Gabriel, > > > > the uniprocessor version uses an optimization at the reader side: > > > > #if defined(RTEMS_SMP) > > } while (gen == 0 || gen != th->th_generation); #else > > } while (gen != th->th_generation); #endif > > > > This is

AW: [PATCH] score: Fix pps_fetch()

2022-05-27 Thread Gabriel.Moyano
Hi Sebastian, It is ok. Thx for adding this, I must have removed this "if" accidentally. > Return early only if there was a timeout, otherwise return the PPS info. > > Update #2349. > --- > cpukit/score/src/kern_tc.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/c

Re: [PATCH 1/1] kern_tc.c: th_generation starts with 1 after overflow for single-core

2022-05-27 Thread Sebastian Huber
On 27.05.22 10:51, Sebastian Huber wrote: Hello Gabriel, the uniprocessor version uses an optimization at the reader side: #if defined(RTEMS_SMP) } while (gen == 0 || gen != th->th_generation); #else } while (gen != th->th_generation); #endif This is possible since the windup happens

Re: [PATCH 1/1] kern_tc.c: th_generation starts with 1 after overflow for single-core

2022-05-27 Thread Sebastian Huber
Hello Gabriel, the uniprocessor version uses an optimization at the reader side: #if defined(RTEMS_SMP) } while (gen == 0 || gen != th->th_generation); #else } while (gen != th->th_generation); #endif This is possible since the windup happens with interrupts disabled. I guess y

[PATCH 0/1] Solves th_generation overflow issue for single-core configuration

2022-05-27 Thread Gabriel Moyano
After increasing th_generation if an overflow happens its value should be 1 since 0 means that the timehand is being updated. In single-core configurations, this wasn't corrected. This patch solves this issue for RTEMS 6. Gabriel Moyano (1): kern_tc.c: th_generation starts with 1 after overflo

[PATCH 1/1] kern_tc.c: th_generation starts with 1 after overflow for single-core

2022-05-27 Thread Gabriel Moyano
--- cpukit/score/src/kern_tc.c | 23 ++- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/cpukit/score/src/kern_tc.c b/cpukit/score/src/kern_tc.c index 89ece1fbde..3256b646ef 100644 --- a/cpukit/score/src/kern_tc.c +++ b/cpukit/score/src/kern_tc.c @@ -1659,9 +165