Changeset 7f6a24ab in rtems for c/src/exec/rtems/inline


Ignore:
Timestamp:
Aug 28, 1995, 3:30:29 PM (26 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
5072b07
Parents:
5250ff39
Message:

Added unused priority ceiling parameter to rtems_semaphore_create.

Rearranged code to created thread handler routines to initialize,
start, restart, and "close/delete" a thread.

Made internal threads their own object class. This now uses the
thread support routines for starting and initializing a thread.

Insured deleted tasks are freed to the Inactive pool associated with the
correct Information block.

Added an RTEMS API specific data area to the thread control block.

Beginnings of removing the word "rtems" from the core.

Location:
c/src/exec/rtems/inline
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/rtems/inline/modes.inl

    r5250ff39 r7f6a24ab  
    2424
    2525STATIC INLINE unsigned32 RTEMS_INTERRUPT_LEVEL (
    26   rtems_mode mode_set
     26  Modes_Control mode_set
    2727)
    2828{
     
    3737
    3838STATIC INLINE boolean _Modes_Mask_changed (
    39   rtems_mode mode_set,
    40   rtems_mode masks
     39  Modes_Control mode_set,
     40  Modes_Control masks
    4141)
    4242{
     
    5151
    5252STATIC INLINE boolean _Modes_Is_asr_disabled (
    53   rtems_mode mode_set
     53  Modes_Control mode_set
    5454)
    5555{
     
    6464
    6565STATIC INLINE boolean _Modes_Is_preempt (
    66   rtems_mode mode_set
     66  Modes_Control mode_set
    6767)
    6868{
     
    7777
    7878STATIC INLINE boolean _Modes_Is_timeslice (
    79   rtems_mode mode_set
     79  Modes_Control mode_set
    8080)
    8181{
     
    9191
    9292STATIC INLINE ISR_Level _Modes_Get_interrupt_level (
    93   rtems_mode mode_set
     93  Modes_Control mode_set
    9494)
    9595{
     
    104104
    105105STATIC INLINE void _Modes_Set_interrupt_level (
    106   rtems_mode mode_set
     106  Modes_Control mode_set
    107107)
    108108{
     
    117117
    118118STATIC INLINE void _Modes_Change (
    119   rtems_mode  old_mode_set,
    120   rtems_mode  new_mode_set,
    121   rtems_mode  mask,
    122   rtems_mode *out_mode_set,
    123   rtems_mode *changed
     119  Modes_Control  old_mode_set,
     120  Modes_Control  new_mode_set,
     121  Modes_Control  mask,
     122  Modes_Control *out_mode_set,
     123  Modes_Control *changed
    124124)
    125125{
    126   rtems_mode _out_mode;
     126  Modes_Control _out_mode;
    127127
    128128  _out_mode      =  old_mode_set;
  • c/src/exec/rtems/inline/rtems/rtems/modes.inl

    r5250ff39 r7f6a24ab  
    2424
    2525STATIC INLINE unsigned32 RTEMS_INTERRUPT_LEVEL (
    26   rtems_mode mode_set
     26  Modes_Control mode_set
    2727)
    2828{
     
    3737
    3838STATIC INLINE boolean _Modes_Mask_changed (
    39   rtems_mode mode_set,
    40   rtems_mode masks
     39  Modes_Control mode_set,
     40  Modes_Control masks
    4141)
    4242{
     
    5151
    5252STATIC INLINE boolean _Modes_Is_asr_disabled (
    53   rtems_mode mode_set
     53  Modes_Control mode_set
    5454)
    5555{
     
    6464
    6565STATIC INLINE boolean _Modes_Is_preempt (
    66   rtems_mode mode_set
     66  Modes_Control mode_set
    6767)
    6868{
     
    7777
    7878STATIC INLINE boolean _Modes_Is_timeslice (
    79   rtems_mode mode_set
     79  Modes_Control mode_set
    8080)
    8181{
     
    9191
    9292STATIC INLINE ISR_Level _Modes_Get_interrupt_level (
    93   rtems_mode mode_set
     93  Modes_Control mode_set
    9494)
    9595{
     
    104104
    105105STATIC INLINE void _Modes_Set_interrupt_level (
    106   rtems_mode mode_set
     106  Modes_Control mode_set
    107107)
    108108{
     
    117117
    118118STATIC INLINE void _Modes_Change (
    119   rtems_mode  old_mode_set,
    120   rtems_mode  new_mode_set,
    121   rtems_mode  mask,
    122   rtems_mode *out_mode_set,
    123   rtems_mode *changed
     119  Modes_Control  old_mode_set,
     120  Modes_Control  new_mode_set,
     121  Modes_Control  mask,
     122  Modes_Control *out_mode_set,
     123  Modes_Control *changed
    124124)
    125125{
    126   rtems_mode _out_mode;
     126  Modes_Control _out_mode;
    127127
    128128  _out_mode      =  old_mode_set;
  • c/src/exec/rtems/inline/rtems/rtems/tasks.inl

    r5250ff39 r7f6a24ab  
    4444)
    4545{
    46   _Objects_Free( &_RTEMS_tasks_Information, &the_task->Object );
     46  _Objects_Free(
     47    _Objects_Get_information( the_task->Object.id ),
     48    &the_task->Object
     49  );
    4750}
    4851
     
    6265  state = the_thread->current_state;
    6366
     67/* XXX do this with the object class */
    6468  if ( _States_Is_waiting_on_thread_queue( state ) ) {
    6569    if ( _States_Is_waiting_for_rpc_reply( state ) &&
     
    9296}
    9397
     98/*PAGE
     99 *
     100 *  _RTEMS_Tasks_Priority_to_Core
     101 */
     102 
     103STATIC INLINE Priority_Control _RTEMS_Tasks_Priority_to_Core(
     104  rtems_task_priority   priority
     105)
     106{
     107  return (Priority_Control) priority;
     108}
     109
    94110#endif
    95111/* end of include file */
  • c/src/exec/rtems/inline/tasks.inl

    r5250ff39 r7f6a24ab  
    4444)
    4545{
    46   _Objects_Free( &_RTEMS_tasks_Information, &the_task->Object );
     46  _Objects_Free(
     47    _Objects_Get_information( the_task->Object.id ),
     48    &the_task->Object
     49  );
    4750}
    4851
     
    6265  state = the_thread->current_state;
    6366
     67/* XXX do this with the object class */
    6468  if ( _States_Is_waiting_on_thread_queue( state ) ) {
    6569    if ( _States_Is_waiting_for_rpc_reply( state ) &&
     
    9296}
    9397
     98/*PAGE
     99 *
     100 *  _RTEMS_Tasks_Priority_to_Core
     101 */
     102 
     103STATIC INLINE Priority_Control _RTEMS_Tasks_Priority_to_Core(
     104  rtems_task_priority   priority
     105)
     106{
     107  return (Priority_Control) priority;
     108}
     109
    94110#endif
    95111/* end of include file */
Note: See TracChangeset for help on using the changeset viewer.