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/macros/rtems/rtems/modes.inl | 2 +- cpukit/rtems/macros/rtems/rtems/tasks.inl | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'cpukit/rtems/macros') diff --git a/cpukit/rtems/macros/rtems/rtems/modes.inl b/cpukit/rtems/macros/rtems/rtems/modes.inl index f8ac061dce..4c8b35a1e8 100644 --- a/cpukit/rtems/macros/rtems/rtems/modes.inl +++ b/cpukit/rtems/macros/rtems/rtems/modes.inl @@ -88,7 +88,7 @@ #define _Modes_Change( _old_mode_set, _new_mode_set, \ _mask, _out_mode_set, _changed ) \ - { rtems_mode _out_mode; \ + { Modes_Control _out_mode; \ \ _out_mode = (_old_mode_set); \ _out_mode &= ~(_mask); \ diff --git a/cpukit/rtems/macros/rtems/rtems/tasks.inl b/cpukit/rtems/macros/rtems/rtems/tasks.inl index 778d4867ca..243d0addc7 100644 --- a/cpukit/rtems/macros/rtems/rtems/tasks.inl +++ b/cpukit/rtems/macros/rtems/rtems/tasks.inl @@ -83,5 +83,13 @@ (void) _Watchdog_Remove( &(_the_thread)->Timer ); \ } +/*PAGE + * + * _RTEMS_Tasks_Priority_to_Core + */ + +#define _RTEMS_Tasks_Priority_to_Core( _priority ) \ + ((Priority_Control) (_priority)) + #endif /* end of include file */ -- cgit v1.2.3