score: Initialize timehand generation to UINT_MAX

This leads to a timehand generation overflow right at the system start
and helps to get code coverage in test programs.
This commit is contained in:
Sebastian Huber
2021-10-11 10:09:57 +02:00
committed by Moyano, Gabriel
parent 1640657022
commit 68a3658d44

View File

@@ -218,7 +218,7 @@ static struct timehands th0 = {
.th_counter = &dummy_timecounter,
.th_scale = (uint64_t)-1 / 1000000,
.th_offset = { .sec = 1 },
.th_generation = 1,
.th_generation = UINT_MAX,
#ifdef __rtems__
.th_bintime = { .sec = TOD_SECONDS_1970_THROUGH_1988 },
.th_microtime = { TOD_SECONDS_1970_THROUGH_1988, 0 },