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