diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-10-11 10:09:57 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-10-28 10:54:26 +0200 |
commit | 9e5c7633e02281894d14418c083f7bbf18debc00 (patch) | |
tree | 9b95c5b0d9abb2da93dab96ef0c756a4a1e65830 | |
parent | 9f048e59886d7464d16908257d8354a2b40f1ae7 (diff) |
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.
-rw-r--r-- | cpukit/score/src/kern_tc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/kern_tc.c b/cpukit/score/src/kern_tc.c index d6b509d09b..5c9912e8a4 100644 --- a/cpukit/score/src/kern_tc.c +++ b/cpukit/score/src/kern_tc.c @@ -224,7 +224,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 }, |