summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/coretodset.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/src/coretodset.c')
-rw-r--r--cpukit/score/src/coretodset.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/score/src/coretodset.c b/cpukit/score/src/coretodset.c
index e1b86a3976..8b0928af60 100644
--- a/cpukit/score/src/coretodset.c
+++ b/cpukit/score/src/coretodset.c
@@ -25,6 +25,7 @@ void _TOD_Set_with_timestamp(
const Timestamp_Control *tod
)
{
+ uint32_t nanoseconds = _Timestamp_Get_nanoseconds( tod );
Watchdog_Interval seconds_next = _Timestamp_Get_seconds( tod );
Watchdog_Interval seconds_now;
@@ -38,8 +39,9 @@ void _TOD_Set_with_timestamp(
else
_Watchdog_Adjust_seconds( WATCHDOG_FORWARD, seconds_next - seconds_now );
- _TOD_Now = *tod;
- _TOD_Is_set = true;
+ _TOD.now = *tod;
+ _TOD.seconds_trigger = nanoseconds;
+ _TOD.is_set = true;
_TOD_Activate();
_Thread_Enable_dispatch();