diff options
Diffstat (limited to '')
-rw-r--r-- | cpukit/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/score/src/apiext.c | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 8afb00aeaf..a3023eb284 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,10 @@ 2009-07-03 Joel Sherrill <joel.sherrill@OARcorp.com> + * score/src/apiext.c: Unreachable API Extension paths marked as either + unused or only with certain APIs. + +2009-07-03 Joel Sherrill <joel.sherrill@OARcorp.com> + * itron/src/task.c, posix/src/pthread.c, rtems/src/tasks.c, sapi/src/exinit.c, score/include/rtems/score/apiext.h, score/src/apiext.c: No APIs currently implemented use the diff --git a/cpukit/score/src/apiext.c b/cpukit/score/src/apiext.c index 98590bc817..959b633f5c 100644 --- a/cpukit/score/src/apiext.c +++ b/cpukit/score/src/apiext.c @@ -80,7 +80,12 @@ void _API_extensions_Run_postdriver( void ) the_extension = (API_extensions_Control *) the_node; + /* + * Currently all APIs configure this hook so it is always non-NULL. + */ +#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API) if ( the_extension->postdriver_hook ) +#endif (*the_extension->postdriver_hook)(); } } @@ -101,7 +106,13 @@ void _API_extensions_Run_postswitch( void ) the_extension = (API_extensions_Control *) the_node; + /* + * Currently the ITRON API is the only API which does not + * provide this hook. + */ +#if defined(RTEMS_ITRON_API) if ( the_extension->postswitch_hook ) +#endif (*the_extension->postswitch_hook)( _Thread_Executing ); } } |