Changeset 976162a6 in rtems for cpukit/sapi/src/exinit.c


Ignore:
Timestamp:
Dec 3, 2007, 10:23:13 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
2f1d801
Parents:
3e066540
Message:

2007-12-03 Joel Sherrill <joel.sherrill@…>

  • libcsupport/src/malloc.c, libmisc/monitor/mon-command.c, posix/preinstall.am, posix/include/rtems/posix/cond.h, posix/include/rtems/posix/mqueue.h, posix/include/rtems/posix/mutex.h, posix/include/rtems/posix/pthread.h, posix/include/rtems/posix/semaphore.h, posix/src/conddestroy.c, posix/src/mutexdestroy.c, posix/src/mutexinit.c, posix/src/mutexsetprioceiling.c, posix/src/mutexunlock.c, sapi/include/confdefs.h, sapi/include/rtems/config.h, sapi/include/rtems/init.h, sapi/include/rtems/sptables.h, sapi/src/exinit.c, score/include/rtems/system.h, score/include/rtems/score/mpci.h, score/src/mpci.c, score/src/thread.c, score/src/threadcreateidle.c, score/src/threadstackallocate.c, score/src/threadstackfree.c, score/src/wkspace.c: Moved most of the remaining CPU Table fields to the Configuration Table. This included pretasking_hook, predriver_hook, postdriver_hook, idle_task, do_zero_of_workspace, extra_mpci_receive_server_stack, stack_allocate_hook, and stack_free_hook. As a side-effect of this effort some multiprocessing code was made conditional and some style clean up occurred.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/sapi/src/exinit.c

    r3e066540 r976162a6  
    9393    );
    9494
     95  /*
     96   *  Grab our own copy of the user's CPU table.
     97   */
     98  _CPU_Table = *cpu_table;
     99
     100  /*
     101   *  Provide pointers just for later convenience.
     102   */
     103  _Configuration_Table    = configuration_table;
     104
     105  /*
     106   * Initialize any target architecture specific support as early as possible
     107   */
     108  _CPU_Initialize( cpu_table, _Thread_Dispatch );
     109
    95110#if defined(RTEMS_MULTIPROCESSING)
    96111  /*
     
    113128
    114129  /*
    115    *  Grab our own copy of the user's CPU table.
    116    */
    117   _CPU_Table = *cpu_table;
    118 
    119   /*
    120    *  Provide pointers just for later convenience.
    121    */
    122   _Configuration_Table    = configuration_table;
    123 
    124   _CPU_Initialize( cpu_table, _Thread_Dispatch );
    125 
    126   /*
    127130   *  Do this as early as possible to insure no debugging output
    128131   *  is even attempted to be printed.
     
    174177#if defined(RTEMS_MULTIPROCESSING)
    175178    ,
    176     multiprocessing_table->maximum_proxies
     179    _Configuration_MP_table->maximum_proxies
    177180#endif
    178181  );
     
    180183#if defined(RTEMS_MULTIPROCESSING)
    181184  _MPCI_Handler_initialization(
    182     multiprocessing_table->User_mpci_table,
     185    _Configuration_MP_table->User_mpci_table,
    183186    RTEMS_TIMEOUT
    184187  );
     
    221224   */
    222225
    223   if ( cpu_table->pretasking_hook )
    224     (*cpu_table->pretasking_hook)();
     226  {
     227    extern void bsp_pretasking_hook(void);
     228    bsp_pretasking_hook();
     229  }
    225230
    226231#if defined(RTEMS_MULTIPROCESSING)
     
    234239  _API_extensions_Run_predriver();
    235240
    236   if ( _CPU_Table.predriver_hook )
    237     (*_CPU_Table.predriver_hook)();
     241  {
     242    extern void bsp_predriver_hook(void);
     243    bsp_predriver_hook();
     244  }
    238245
    239246  /*
     
    262269  _API_extensions_Run_postdriver();
    263270
    264   if ( _CPU_Table.postdriver_hook )
    265     (*_CPU_Table.postdriver_hook)();
     271  {
     272    extern void bsp_postdriver_hook(void);
     273    bsp_postdriver_hook();
     274  }
    266275
    267276  return bsp_level;
Note: See TracChangeset for help on using the changeset viewer.