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
parent c3a68059d8
commit b88d9cb3e1

View File

@@ -235,7 +235,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 },