Changeset 562eab5c in rtems


Ignore:
Timestamp:
Jul 3, 2009, 3:13:47 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 5, master
Children:
c5d412c
Parents:
fc5490f
Message:

2009-07-03 Daniel Hellstrom <daniel@…>

  • sapi/src/exinit.c, score/include/rtems/score/objectmp.h, score/src/objectmp.c: Ensure local node number is set early enough in MP configurations.
Location:
cpukit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rfc5490f r562eab5c  
     12009-07-03      Daniel Hellstrom <daniel@gaisler.com>
     2
     3        * sapi/src/exinit.c, score/include/rtems/score/objectmp.h,
     4        score/src/objectmp.c: Ensure local node number is set early enough in
     5        MP configurations.
     6
    172009-07-02      Joel Sherrill <joel.sherrill@OARcorp.com>
    28
  • cpukit/sapi/src/exinit.c

    rfc5490f r562eab5c  
    9797  _CPU_Initialize();
    9898
     99  #if defined(RTEMS_MULTIPROCESSING)
     100    _Objects_MP_Handler_early_initialization();
     101  #endif
     102
    99103  /*
    100104   *  Do this as early as possible to ensure no debugging output
  • cpukit/score/include/rtems/score/objectmp.h

    rfc5490f r562eab5c  
    5353 */
    5454void _Objects_MP_Handler_initialization(void);
     55
     56/** @brief  Objects MP Handler Early initialization
     57 *
     58 *  This routine intializes the global object node number
     59 *  used in the ID field of all objects.
     60 */
     61void _Objects_MP_Handler_early_initialization(void);
    5562
    5663/** @brief Objects MP Open
  • cpukit/score/src/objectmp.c

    rfc5490f r562eab5c  
    2626/*PAGE
    2727 *
    28  *  _Objects_MP_Handler_initialization
    29  *
    30  */
    31 
    32 void _Objects_MP_Handler_initialization(void)
     28 *  _Objects_MP_Handler_early_initialization
     29 *
     30 */
     31void _Objects_MP_Handler_early_initialization(void)
    3332{
    3433  uint32_t   node;
    3534  uint32_t   maximum_nodes;
    36   uint32_t   maximum_global_objects;
    3735
    3836  node                   = _Configuration_MP_table->node;
    3937  maximum_nodes          = _Configuration_MP_table->maximum_nodes;
    40   maximum_global_objects = _Configuration_MP_table->maximum_global_objects;
    4138
    4239  if ( node < 1 || node > maximum_nodes )
     
    4744    );
    4845
    49 
    5046  _Objects_Local_node    = node;
    5147  _Objects_Maximum_nodes = maximum_nodes;
     48}
     49
     50/*PAGE
     51 *
     52 *  _Objects_MP_Handler_initialization
     53 *
     54 */
     55
     56void _Objects_MP_Handler_initialization(void)
     57{
     58
     59  uint32_t   maximum_global_objects;
     60
     61  maximum_global_objects = _Configuration_MP_table->maximum_global_objects;
     62
    5263  _Objects_MP_Maximum_global_objects = maximum_global_objects;
    5364
     
    294305
    295306}
     307
Note: See TracChangeset for help on using the changeset viewer.