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

2022-05-29 Thread Sebastian Huber
On 30/05/2022 08:29, gabriel.moy...@dlr.de wrote: 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_generat

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

2022-05-29 Thread Gabriel.Moyano
> 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 >

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

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 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