Time going backwards with clock_gettime(CLOCK_MONOTONIC, ...)

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Nov 12 06:19:42 UTC 2014


On 12/11/14 02:41, Nick Withers wrote:
> On Tue, 2014-11-11 at 07:53 +0100, Sebastian Huber wrote:
>> >Hello Nick,
>> >
>> >what is the output of the spnsext01 test for this BSP/board?
> Hrmm, doesn't look good:
> ____
>
> *** BEGIN OF TEST SPNSEXT 1 ***
> ../../../../../../../../rtems/c/src/../../testsuites/sptests/spnsext01/init.c: 66 !_Timespec_Less_than(&new_uptime, &uptime)
> ____
>
> ...followed by a reset.

This shows that the nanoseconds extensions of the clock driver is broken.  This 
explains also your time going backwards problem.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the users mailing list