From 7f6a24abdd1793e394e4d5d49de1f4ca0e00297a Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 28 Aug 1995 15:30:29 +0000 Subject: 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. --- cpukit/rtems/inline/rtems/rtems/tasks.inl | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'cpukit/rtems/inline/rtems/rtems/tasks.inl') diff --git a/cpukit/rtems/inline/rtems/rtems/tasks.inl b/cpukit/rtems/inline/rtems/rtems/tasks.inl index d392b8b370..2aec654571 100644 --- a/cpukit/rtems/inline/rtems/rtems/tasks.inl +++ b/cpukit/rtems/inline/rtems/rtems/tasks.inl @@ -43,7 +43,10 @@ STATIC INLINE void _RTEMS_tasks_Free ( Thread_Control *the_task ) { - _Objects_Free( &_RTEMS_tasks_Information, &the_task->Object ); + _Objects_Free( + _Objects_Get_information( the_task->Object.id ), + &the_task->Object + ); } /*PAGE @@ -61,6 +64,7 @@ STATIC INLINE void _RTEMS_tasks_Cancel_wait( state = the_thread->current_state; +/* XXX do this with the object class */ if ( _States_Is_waiting_on_thread_queue( state ) ) { if ( _States_Is_waiting_for_rpc_reply( state ) && _States_Is_locally_blocked( state ) ) { @@ -91,5 +95,17 @@ STATIC INLINE void _RTEMS_tasks_Cancel_wait( (void) _Watchdog_Remove( &the_thread->Timer ); } +/*PAGE + * + * _RTEMS_Tasks_Priority_to_Core + */ + +STATIC INLINE Priority_Control _RTEMS_Tasks_Priority_to_Core( + rtems_task_priority priority +) +{ + return (Priority_Control) priority; +} + #endif /* end of include file */ -- cgit v1.2.3