summaryrefslogtreecommitdiffstats
path: root/c/src/exec/score/src/coretod.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-09-06 15:16:19 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-09-06 15:16:19 +0000
commit7fea679b6f4c376cf068eaee987d3ff4e415b23e (patch)
treebbcdc26257c60b66b264d7b143692104fe4b6757 /c/src/exec/score/src/coretod.c
parentdefault thread attributes: default value for inheritsched changed from (diff)
downloadrtems-7fea679b6f4c376cf068eaee987d3ff4e415b23e.tar.bz2
changed _TOD_Is_set from a function to a boolean variable
Diffstat (limited to 'c/src/exec/score/src/coretod.c')
-rw-r--r--c/src/exec/score/src/coretod.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/c/src/exec/score/src/coretod.c b/c/src/exec/score/src/coretod.c
index 8c7fb93d79..9da6f11510 100644
--- a/c/src/exec/score/src/coretod.c
+++ b/c/src/exec/score/src/coretod.c
@@ -54,6 +54,9 @@ void _TOD_Handler_initialization(
TOD_MICROSECONDS_PER_SECOND / microseconds_per_tick;
_Watchdog_Initialize( &_TOD_Seconds_watchdog, _TOD_Tickle, 0, NULL );
+
+ _TOD_Is_set = FALSE;
+ _TOD_Activate( _TOD_Ticks_per_second );
}
/*PAGE
@@ -93,6 +96,7 @@ void _TOD_Set(
_TOD_Current = *the_tod;
_TOD_Seconds_since_epoch = seconds_since_epoch;
+ _TOD_Is_set = TRUE;
_TOD_Activate( ticks_until_next_second );
_Thread_Enable_dispatch();