Changeset 5250ff39 in rtems for cpukit/rtems


Ignore:
Timestamp:
Aug 23, 1995, 9:06:31 PM (26 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
7f6a24ab
Parents:
3235ad9
Message:

Moved _Thread_Information -> _RTEMS_tasks_Information.

Added a table of object information control blocks.

Modified _Thread_Get so it looks up a thread regardless of which
thread management "entity" (manager, internal, etc) actually "owns" it.

Location:
cpukit/rtems
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/include/rtems/rtems/tasks.h

    r3235ad9 r5250ff39  
    6363
    6464/*
     65 *  The following defines the information control block used to
     66 *  manage this class of objects.
     67 */
     68
     69EXTERN Objects_Information _RTEMS_tasks_Information;
     70
     71/*
     72 *  _RTEMS_tasks_Manager_initialization
     73 *
     74 *  DESCRIPTION:
     75 *
     76 *  This routine initializes all Task Manager related data structures.
     77 */
     78 
     79void _RTEMS_tasks_Manager_initialization(
     80  unsigned32   maximum_tasks
     81);
     82
     83/*
    6584 *  rtems_task_create
    6685 *
  • cpukit/rtems/inline/rtems/rtems/tasks.inl

    r3235ad9 r5250ff39  
    3131STATIC INLINE Thread_Control *_RTEMS_tasks_Allocate( void )
    3232{
    33   return (Thread_Control *) _Objects_Allocate( &_Thread_Information );
     33  return (Thread_Control *) _Objects_Allocate( &_RTEMS_tasks_Information );
    3434}
    3535
     
    4444)
    4545{
    46   _Objects_Free( &_Thread_Information, &the_task->Object );
     46  _Objects_Free( &_RTEMS_tasks_Information, &the_task->Object );
    4747}
    4848
  • cpukit/rtems/macros/rtems/rtems/tasks.inl

    r3235ad9 r5250ff39  
    3030
    3131#define _RTEMS_tasks_Allocate() \
    32   (Thread_Control *) _Objects_Allocate( &_Thread_Information )
     32  (Thread_Control *) _Objects_Allocate( &_RTEMS_tasks_Information )
    3333
    3434/*PAGE
     
    3939
    4040#define _RTEMS_tasks_Free( _the_task ) \
    41   _Objects_Free( &_Thread_Information, &(_the_task)->Object )
     41  _Objects_Free( &_RTEMS_tasks_Information, &(_the_task)->Object )
    4242
    4343/*PAGE
  • cpukit/rtems/src/dpmem.c

    r3235ad9 r5250ff39  
    4444    sizeof( Dual_ported_memory_Control ),
    4545    FALSE,
    46     RTEMS_MAXIMUM_NAME_LENGTH
     46    RTEMS_MAXIMUM_NAME_LENGTH,
     47    FALSE
    4748  );
    4849}
  • cpukit/rtems/src/msg.c

    r3235ad9 r5250ff39  
    5252    sizeof( Message_queue_Control ),
    5353    FALSE,
    54     RTEMS_MAXIMUM_NAME_LENGTH
     54    RTEMS_MAXIMUM_NAME_LENGTH,
     55    FALSE
    5556  );
    5657}
  • cpukit/rtems/src/part.c

    r3235ad9 r5250ff39  
    4646    sizeof( Partition_Control ),
    4747    FALSE,
    48     RTEMS_MAXIMUM_NAME_LENGTH
     48    RTEMS_MAXIMUM_NAME_LENGTH,
     49    FALSE
    4950  );
    5051
  • cpukit/rtems/src/ratemon.c

    r3235ad9 r5250ff39  
    4848    sizeof( Rate_monotonic_Control ),
    4949    FALSE,
    50     RTEMS_MAXIMUM_NAME_LENGTH
     50    RTEMS_MAXIMUM_NAME_LENGTH,
     51    FALSE
    5152  );
    5253}
  • cpukit/rtems/src/region.c

    r3235ad9 r5250ff39  
    4646    sizeof( Region_Control ),
    4747    FALSE,
    48     RTEMS_MAXIMUM_NAME_LENGTH
     48    RTEMS_MAXIMUM_NAME_LENGTH,
     49    FALSE
    4950  );
    5051}
  • cpukit/rtems/src/rtemstimer.c

    r3235ad9 r5250ff39  
    4545    sizeof( Timer_Control ),
    4646    FALSE,
    47     RTEMS_MAXIMUM_NAME_LENGTH
     47    RTEMS_MAXIMUM_NAME_LENGTH,
     48    FALSE
    4849  );
    4950}
  • cpukit/rtems/src/sem.c

    r3235ad9 r5250ff39  
    6363    sizeof( Semaphore_Control ),
    6464    FALSE,
    65     RTEMS_MAXIMUM_NAME_LENGTH
     65    RTEMS_MAXIMUM_NAME_LENGTH,
     66    FALSE
    6667  );
    6768}
  • cpukit/rtems/src/taskmp.c

    r3235ad9 r5250ff39  
    195195
    196196      ignored = _Objects_MP_Open(
    197                   &_Thread_Information,
     197                  &_RTEMS_tasks_Information,
    198198                  the_packet->name,
    199199                  the_packet->Prefix.id,
     
    206206    case RTEMS_TASKS_MP_ANNOUNCE_DELETE:
    207207
    208       _Objects_MP_Close( &_Thread_Information, the_packet->Prefix.id );
     208      _Objects_MP_Close( &_RTEMS_tasks_Information, the_packet->Prefix.id );
    209209
    210210      _MPCI_Return_packet( the_packet_prefix );
  • cpukit/rtems/src/tasks.c

    r3235ad9 r5250ff39  
    2929/*PAGE
    3030 *
     31 *  _RTEMS_tasks_Manager_initialization
     32 *
     33 *  This routine initializes all Task Manager related data structures.
     34 *
     35 *  Input parameters:
     36 *    maximum_tasks       - number of tasks to initialize
     37 *
     38 *  Output parameters:  NONE
     39 */
     40
     41void _RTEMS_tasks_Manager_initialization(
     42  unsigned32   maximum_tasks
     43)
     44{
     45  _Objects_Initialize_information(
     46    &_RTEMS_tasks_Information,
     47    OBJECTS_RTEMS_TASKS,
     48    TRUE,
     49    maximum_tasks,
     50    sizeof( Thread_Control ),
     51    FALSE,
     52    RTEMS_MAXIMUM_NAME_LENGTH,
     53    TRUE
     54  );
     55}
     56
     57/*PAGE
     58 *
    3159 *  rtems_task_create
    3260 *
     
    137165
    138166  if ( _Attributes_Is_global( the_attribute_set ) &&
    139        !( _Objects_MP_Open( &_Thread_Information, name,
     167       !( _Objects_MP_Open( &_RTEMS_tasks_Information, name,
    140168                            the_thread->Object.id, FALSE ) ) ) {
    141169    _RTEMS_tasks_Free( the_thread );
     
    158186  _ASR_Initialize( &the_thread->Signal );
    159187
    160   _Objects_Open( &_Thread_Information, &the_thread->Object, &name );
     188  _Objects_Open( &_RTEMS_tasks_Information, &the_thread->Object, &name );
    161189
    162190  *id = the_thread->Object.id;
     
    200228{
    201229  if ( name != OBJECTS_ID_OF_SELF )
    202     return( _Objects_Name_to_id( &_Thread_Information, &name, node, id ) );
     230    return( _Objects_Name_to_id( &_RTEMS_tasks_Information, &name, node, id ) );
    203231
    204232  *id = _Thread_Executing->Object.id;
     
    369397      return( RTEMS_ILLEGAL_ON_REMOTE_OBJECT );
    370398    case OBJECTS_LOCAL:
    371       _Objects_Close( &_Thread_Information, &the_thread->Object );
     399      _Objects_Close( &_RTEMS_tasks_Information, &the_thread->Object );
    372400
    373401      _Thread_Set_state( the_thread, STATES_TRANSIENT );
     
    389417      if ( _Attributes_Is_global( the_thread->attribute_set ) ) {
    390418
    391         _Objects_MP_Close( &_Thread_Information, the_thread->Object.id );
     419        _Objects_MP_Close( &_RTEMS_tasks_Information, the_thread->Object.id );
    392420
    393421        _RTEMS_tasks_MP_Send_process_packet(
Note: See TracChangeset for help on using the changeset viewer.