[rtems commit] score: Initialize timehand generation to UINT_MAX
Jan Sommer
jan at rtems.org
Tue Nov 30 14:40:44 UTC 2021
Module: rtems
Branch: 5
Commit: 68a3658d449b7eae6f255a0620e24d16cac8379e
Changeset: http://git.rtems.org/rtems/commit/?id=68a3658d449b7eae6f255a0620e24d16cac8379e
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Oct 11 10:09:57 2021 +0200
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.
---
cpukit/score/src/kern_tc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/score/src/kern_tc.c b/cpukit/score/src/kern_tc.c
index 0e6d98d..52ae6aa 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 },
More information about the vc
mailing list