forked from Imagelibrary/rtems
2007-04-05 Joel Sherrill <joel@OARcorp.com>
* itron/src/itrontime.c: Fix typo. * score/include/rtems/score/tod.h: Add TOD_TICKS_PER_SECOND macro. * score/src/iterateoverthreads.c: Safely take NULL as argument. * score/src/threaddispatch.c: Formatting.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
2007-04-05 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* itron/src/itrontime.c: Fix typo.
|
||||
* score/include/rtems/score/tod.h: Add TOD_TICKS_PER_SECOND macro.
|
||||
* score/src/iterateoverthreads.c: Safely take NULL as argument.
|
||||
* score/src/threaddispatch.c: Formatting.
|
||||
|
||||
2007-04-05 Joel Sherrill <joel@OARcorp.com>
|
||||
|
||||
* posix/Makefile.am: Fix formatting.
|
||||
|
||||
@@ -37,7 +37,7 @@ ER set_tim(
|
||||
/* XXX */ temp = 0;
|
||||
if(temp > 0) {
|
||||
_Thread_Disable_dispatch();
|
||||
_TOD_Set(&the_tod);
|
||||
_TOD_Set(&time);
|
||||
_Thread_Enable_dispatch();
|
||||
return E_OK;
|
||||
}
|
||||
|
||||
@@ -31,7 +31,6 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
#include <rtems/score/object.h>
|
||||
#include <rtems/score/watchdog.h>
|
||||
#include <time.h>
|
||||
|
||||
/** @defgroup ScoreTODConstants TOD Constants
|
||||
@@ -108,6 +107,14 @@ extern "C" {
|
||||
|
||||
/**@}*/
|
||||
|
||||
/** @brief Ticks per Second
|
||||
*
|
||||
* This macro calculates the number of ticks per second.
|
||||
*/
|
||||
|
||||
#define TOD_TICKS_PER_SECOND \
|
||||
(TOD_MICROSECONDS_PER_SECOND / _TOD_Microseconds_per_tick)
|
||||
|
||||
/** @brief RTEMS Epoch Year
|
||||
*
|
||||
* The following constant define the earliest year to which an
|
||||
|
||||
@@ -29,6 +29,9 @@ void rtems_iterate_over_all_threads(rtems_per_thread_routine routine)
|
||||
Thread_Control *the_thread;
|
||||
Objects_Information *information;
|
||||
|
||||
if ( !routine )
|
||||
return;
|
||||
|
||||
for ( api_index = 1 ;
|
||||
api_index <= OBJECTS_APIS_LAST ;
|
||||
api_index++ ) {
|
||||
|
||||
@@ -114,7 +114,8 @@ void _Thread_Dispatch( void )
|
||||
|
||||
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
|
||||
#if ( CPU_USE_DEFERRED_FP_SWITCH == TRUE )
|
||||
if ( (executing->fp_context != NULL) && !_Thread_Is_allocated_fp( executing ) ) {
|
||||
if ( (executing->fp_context != NULL) &&
|
||||
!_Thread_Is_allocated_fp( executing ) ) {
|
||||
if ( _Thread_Allocated_fp != NULL )
|
||||
_Context_Save_fp( &_Thread_Allocated_fp->fp_context );
|
||||
_Context_Restore_fp( &executing->fp_context );
|
||||
|
||||
Reference in New Issue
Block a user