summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-10-11 10:09:57 +0200
committerMoyano, Gabriel <gabriel.moyano@dlr.de>2021-11-16 09:48:22 +0100
commit68a3658d449b7eae6f255a0620e24d16cac8379e (patch)
treec12715d87cc8c83176783bed14620aa01db85280
parenttimecounter: Load the currently selected tc once in tc_windup() (diff)
downloadrtems-68a3658d449b7eae6f255a0620e24d16cac8379e.tar.bz2
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/src/kern_tc.c b/cpukit/score/src/kern_tc.c
index 0e6d98d117..52ae6aa034 100644
--- a/cpukit/score/src/kern_tc.c
+++ b/cpukit/score/src/kern_tc.c
@@ -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 },