Changeset 27b961a in rtems


Ignore:
Timestamp:
Jul 3, 2009, 8:25:35 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
cf46f9de
Parents:
4a10519
Message:

2009-07-03 Joel Sherrill <joel.sherrill@…>

  • 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.
Location:
cpukit
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r4a10519 r27b961a  
     12009-07-03      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * itron/src/task.c, posix/src/pthread.c, rtems/src/tasks.c,
     4        sapi/src/exinit.c, score/include/rtems/score/apiext.h,
     5        score/src/apiext.c: No APIs currently implemented use the
     6        predriver_hook so disable it until such time as it is used.
     7
    182009-07-03      Joel Sherrill <joel.sherrill@OARcorp.com>
    29
  • cpukit/itron/src/task.c

    r4a10519 r27b961a  
    113113API_extensions_Control _ITRON_Task_API_extensions = {
    114114  { NULL, NULL },
    115   NULL,                                     /* predriver */
    116   _ITRON_Task_Initialize_user_tasks,       /* postdriver */
     115  #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
     116    NULL,                                   /* predriver */
     117  #endif
     118  _ITRON_Task_Initialize_user_tasks,        /* postdriver */
    117119  NULL                                      /* post switch */
    118120};
  • cpukit/posix/src/pthread.c

    r4a10519 r27b961a  
    290290API_extensions_Control _POSIX_Threads_API_extensions = {
    291291  { NULL, NULL },
    292   NULL,                                     /* predriver */
     292  #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
     293    NULL,                                   /* predriver */
     294  #endif
    293295  _POSIX_Threads_Initialize_user_threads,   /* postdriver */
    294296  _POSIX_signals_Post_switch_extension,     /* post switch */
  • cpukit/rtems/src/tasks.c

    r4a10519 r27b961a  
    216216API_extensions_Control _RTEMS_tasks_API_extensions = {
    217217  { NULL, NULL },
    218   NULL,                                     /* predriver */
     218  #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
     219    NULL,                                   /* predriver */
     220  #endif
    219221  _RTEMS_tasks_Initialize_user_tasks,       /* postdriver */
    220222  _RTEMS_tasks_Post_switch_extension        /* post switch */
  • cpukit/sapi/src/exinit.c

    r4a10519 r27b961a  
    180180  #endif
    181181
    182   /*
    183    *  Run the API and BSPs predriver hook.
    184    */
    185 
    186   _API_extensions_Run_predriver();
    187 
     182  #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
     183    /*
     184     *  Run the API and BSPs predriver hook.
     185     */
     186    _API_extensions_Run_predriver();
     187  #endif
    188188}
    189189
  • cpukit/score/include/rtems/score/apiext.h

    r4a10519 r27b961a  
    66
    77/*
    8  *  COPYRIGHT (c) 1989-2006.
     8 *  COPYRIGHT (c) 1989-2009.
    99 *  On-Line Applications Research Corporation (OAR).
    1010 *
     
    3434#include <rtems/score/thread.h>
    3535
    36 /**
    37  *  This type defines the prototype of the Predriver Hook.
    38  */
    39 typedef void (*API_extensions_Predriver_hook)(void);
     36#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
     37  /**
     38   *  This type defines the prototype of the Predriver Hook.
     39   */
     40  typedef void (*API_extensions_Predriver_hook)(void);
     41#endif
    4042
    4143/**
     
    5860  /** This field allows this structure to be used with the Chain Handler. */
    5961  Chain_Node                      Node;
    60   /**
    61    * This field is the callout invoked during RTEMS initialization after
    62    * RTEMS data structures are initialized before device driver initialization
    63    * has occurred.
    64    *
    65    * @note If this field is NULL, no extension is invoked.
    66    */
    67   API_extensions_Predriver_hook   predriver_hook;
     62  #if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
     63    /**
     64     * This field is the callout invoked during RTEMS initialization after
     65     * RTEMS data structures are initialized before device driver initialization
     66     * has occurred.
     67     *
     68     * @note If this field is NULL, no extension is invoked.
     69     */
     70    API_extensions_Predriver_hook   predriver_hook;
     71  #endif
    6872  /**
    6973   * This field is the callout invoked during RTEMS initialization after
     
    104108);
    105109
    106 /** @brief Execute all Pre-Driver Extensions
    107  *
    108  *  This routine executes all of the predriver callouts.
    109  */
    110 void _API_extensions_Run_predriver( void );
     110#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
     111  /** @brief Execute all Pre-Driver Extensions
     112   *
     113   *  This routine executes all of the predriver callouts.
     114   */
     115  void _API_extensions_Run_predriver( void );
     116#endif
    111117
    112118/** @brief Execute all Post-Driver Extensions
  • cpukit/score/src/apiext.c

    r4a10519 r27b961a  
    4242}
    4343
    44 /*PAGE
    45  *
    46  *  _API_extensions_Run_predriver
    47  */
     44#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)
     45  /*PAGE
     46   *
     47   *  _API_extensions_Run_predriver
     48   */
    4849
    49 void _API_extensions_Run_predriver( void )
    50 {
    51   Chain_Node             *the_node;
    52   API_extensions_Control *the_extension;
     50  void _API_extensions_Run_predriver( void )
     51  {
     52    Chain_Node             *the_node;
     53    API_extensions_Control *the_extension;
    5354
    54   for ( the_node = _API_extensions_List.first ;
    55         !_Chain_Is_tail( &_API_extensions_List, the_node ) ;
    56         the_node = the_node->next ) {
     55    for ( the_node = _API_extensions_List.first ;
     56          !_Chain_Is_tail( &_API_extensions_List, the_node ) ;
     57          the_node = the_node->next ) {
    5758
    58     the_extension = (API_extensions_Control *) the_node;
     59      the_extension = (API_extensions_Control *) the_node;
    5960
    60     if ( the_extension->predriver_hook )
    61       (*the_extension->predriver_hook)();
     61      if ( the_extension->predriver_hook )
     62        (*the_extension->predriver_hook)();
     63    }
    6264  }
    63 }
     65#endif
    6466
    6567/*PAGE
Note: See TracChangeset for help on using the changeset viewer.