diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-07-03 20:25:35 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2009-07-03 20:25:35 +0000 |
commit | 27b961a39bbc5e23c33e185b72eefcd39c722e6d (patch) | |
tree | 92e604c103a8b41b7b8c65a0b373aedc2fd75cd7 /cpukit/score/include | |
parent | 2009-07-03 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-27b961a39bbc5e23c33e185b72eefcd39c722e6d.tar.bz2 |
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
predriver_hook so disable it until such time as it is used.
Diffstat (limited to 'cpukit/score/include')
-rw-r--r-- | cpukit/score/include/rtems/score/apiext.h | 42 |
1 files changed, 24 insertions, 18 deletions
diff --git a/cpukit/score/include/rtems/score/apiext.h b/cpukit/score/include/rtems/score/apiext.h index e1135fbd63..c51bcc7b6e 100644 --- a/cpukit/score/include/rtems/score/apiext.h +++ b/cpukit/score/include/rtems/score/apiext.h @@ -5,7 +5,7 @@ */ /* - * COPYRIGHT (c) 1989-2006. + * COPYRIGHT (c) 1989-2009. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -33,10 +33,12 @@ #include <rtems/score/chain.h> #include <rtems/score/thread.h> -/** - * This type defines the prototype of the Predriver Hook. - */ -typedef void (*API_extensions_Predriver_hook)(void); +#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API) + /** + * This type defines the prototype of the Predriver Hook. + */ + typedef void (*API_extensions_Predriver_hook)(void); +#endif /** * This type defines the prototype of the Postdriver Hook. @@ -57,14 +59,16 @@ typedef void (*API_extensions_Postswitch_hook)( typedef struct { /** This field allows this structure to be used with the Chain Handler. */ Chain_Node Node; - /** - * This field is the callout invoked during RTEMS initialization after - * RTEMS data structures are initialized before device driver initialization - * has occurred. - * - * @note If this field is NULL, no extension is invoked. - */ - API_extensions_Predriver_hook predriver_hook; + #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API) + /** + * This field is the callout invoked during RTEMS initialization after + * RTEMS data structures are initialized before device driver initialization + * has occurred. + * + * @note If this field is NULL, no extension is invoked. + */ + API_extensions_Predriver_hook predriver_hook; + #endif /** * This field is the callout invoked during RTEMS initialization after * RTEMS data structures and device driver initialization has occurred @@ -103,11 +107,13 @@ void _API_extensions_Add( API_extensions_Control *the_extension ); -/** @brief Execute all Pre-Driver Extensions - * - * This routine executes all of the predriver callouts. - */ -void _API_extensions_Run_predriver( void ); +#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API) + /** @brief Execute all Pre-Driver Extensions + * + * This routine executes all of the predriver callouts. + */ + void _API_extensions_Run_predriver( void ); +#endif /** @brief Execute all Post-Driver Extensions * |