diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-09-06 15:16:19 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1996-09-06 15:16:19 +0000 |
commit | 7fea679b6f4c376cf068eaee987d3ff4e415b23e (patch) | |
tree | bbcdc26257c60b66b264d7b143692104fe4b6757 /c/src/exec/score/src/coretod.c | |
parent | default thread attributes: default value for inheritsched changed from (diff) | |
download | rtems-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.c | 4 |
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(); |