summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/apiext.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-03 20:57:21 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2009-07-03 20:57:21 +0000
commitcf46f9de14cd6625b31f15471fe10c56bb36301f (patch)
tree1ece03cf1dda43990d3589df259737a3645023f8 /cpukit/score/src/apiext.c
parent2009-07-03 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-cf46f9de14cd6625b31f15471fe10c56bb36301f.tar.bz2
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.
Diffstat (limited to 'cpukit/score/src/apiext.c')
-rw-r--r--cpukit/score/src/apiext.c11
1 files changed, 11 insertions, 0 deletions
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 );
}
}