Changeset 7f6a24ab in rtems for cpukit/rtems/include


Ignore:
Timestamp:
08/28/95 15:30:29 (28 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:
cpukit/rtems/include/rtems/rtems
Files:
7 edited

Legend:

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

    r5250ff39 r7f6a24ab  
    5555
    5656typedef struct {
    57   rtems_asr_entry            handler;          /* address of RTEMS_ASR */
    58   rtems_mode          mode_set;         /* RTEMS_ASR mode */
    59   rtems_signal_set signals_posted;   /* signal set */
    60   rtems_signal_set signals_pending;  /* pending signal set */
    61   unsigned32             nest_level;       /* nest level of RTEMS_ASR */
     57  rtems_asr_entry   handler;          /* address of RTEMS_ASR */
     58  Modes_Control     mode_set;         /* RTEMS_ASR mode */
     59  rtems_signal_set  signals_posted;   /* signal set */
     60  rtems_signal_set  signals_pending;  /* pending signal set */
     61  unsigned32        nest_level;       /* nest level of RTEMS_ASR */
    6262}   ASR_Information;
    6363
  • cpukit/rtems/include/rtems/rtems/attr.h

    r5250ff39 r7f6a24ab  
    2828/* constants */
    2929
    30 #define RTEMS_DEFAULT_ATTRIBUTES            0x00000000
     30#define RTEMS_DEFAULT_ATTRIBUTES  0x00000000
    3131
    3232#define RTEMS_NO_FLOATING_POINT   0x00000000 /* don't use FP HW */
  • cpukit/rtems/include/rtems/rtems/modes.h

    r5250ff39 r7f6a24ab  
    2929 */
    3030
    31 typedef unsigned32 rtems_mode;
     31typedef unsigned32 Modes_Control;
    3232
    3333/*
     
    7474
    7575STATIC INLINE unsigned32 RTEMS_INTERRUPT_LEVEL (
    76   rtems_mode mode_set
     76  Modes_Control mode_set
    7777);
    7878
     
    8787
    8888STATIC INLINE boolean _Modes_Mask_changed (
    89   rtems_mode mode_set,
    90   rtems_mode masks
     89  Modes_Control mode_set,
     90  Modes_Control masks
    9191);
    9292
     
    101101
    102102STATIC INLINE boolean _Modes_Is_asr_disabled (
    103   rtems_mode mode_set
     103  Modes_Control mode_set
    104104);
    105105
     
    114114
    115115STATIC INLINE boolean _Modes_Is_preempt (
    116   rtems_mode mode_set
     116  Modes_Control mode_set
    117117);
    118118
     
    127127
    128128STATIC INLINE boolean _Modes_Is_timeslice (
    129   rtems_mode mode_set
     129  Modes_Control mode_set
    130130);
    131131
     
    139139
    140140STATIC INLINE ISR_Level _Modes_Get_interrupt_level (
    141   rtems_mode mode_set
     141  Modes_Control mode_set
    142142);
    143143
     
    152152
    153153STATIC INLINE void _Modes_Set_interrupt_level (
    154   rtems_mode mode_set
     154  Modes_Control mode_set
    155155);
    156156
     
    167167
    168168STATIC INLINE void _Modes_Change (
    169   rtems_mode  old_mode_set,
    170   rtems_mode  new_mode_set,
    171   rtems_mode  mask,
    172   rtems_mode *out_mode_set,
    173   rtems_mode *changed
     169  Modes_Control  old_mode_set,
     170  Modes_Control  new_mode_set,
     171  Modes_Control  mask,
     172  Modes_Control *out_mode_set,
     173  Modes_Control *changed
    174174);
    175175
  • cpukit/rtems/include/rtems/rtems/sem.h

    r5250ff39 r7f6a24ab  
    8383
    8484rtems_status_code rtems_semaphore_create(
    85   rtems_name          name,
    86   unsigned32          count,
    87   rtems_attribute  attribute_set,
    88   Objects_Id         *id
     85  rtems_name            name,
     86  unsigned32            count,
     87  rtems_attribute       attribute_set,
     88  rtems_task_priority   priority_ceiling,
     89  Objects_Id           *id
    8990);
    9091
  • cpukit/rtems/include/rtems/rtems/signal.h

    r5250ff39 r7f6a24ab  
    3232#include <rtems/object.h>
    3333#include <rtems/status.h>
     34#include <rtems/types.h>
    3435
    3536/*
     
    4647rtems_status_code rtems_signal_catch(
    4748  rtems_asr_entry   asr_handler,
    48   rtems_mode mode_set
     49  rtems_mode        mode_set
    4950);
    5051
  • cpukit/rtems/include/rtems/rtems/tasks.h

    r5250ff39 r7f6a24ab  
    4848#include <rtems/thread.h>
    4949#include <rtems/threadq.h>
     50#include <rtems/types.h>
    5051
    5152/*
     
    9596
    9697rtems_status_code rtems_task_create(
    97   rtems_name          name,
    98   rtems_task_priority    initial_priority,
    99   unsigned32          stack_size,
    100   rtems_mode       initial_modes,
    101   rtems_attribute  attribute_set,
    102   Objects_Id         *id
     98  rtems_name           name,
     99  rtems_task_priority  initial_priority,
     100  unsigned32           stack_size,
     101  rtems_mode           initial_modes,
     102  rtems_attribute      attribute_set,
     103  Objects_Id          *id
    103104);
    104105
     
    238239
    239240rtems_status_code rtems_task_set_priority(
    240   Objects_Id        id,
     241  Objects_Id           id,
    241242  rtems_task_priority  new_priority,
    242243  rtems_task_priority *old_priority
     
    325326);
    326327
     328/*
     329 *  _RTEMS_Tasks_Priority_to_Core
     330 *
     331 *  DESCRIPTION:
     332 *
     333 *  This function converts an RTEMS API priority into a core priority.
     334 */
     335 
     336STATIC INLINE Priority_Control _RTEMS_Tasks_Priority_to_Core(
     337  rtems_task_priority   priority
     338);
     339
    327340#include <rtems/tasks.inl>
    328341#include <rtems/taskmp.h>
  • cpukit/rtems/include/rtems/rtems/types.h

    r5250ff39 r7f6a24ab  
    2222
    2323#include <rtems/object.h>
     24#include <rtems/priority.h>
     25#include <rtems/modes.h>
    2426
    2527/*
     
    4951typedef CPU_Interrupt_frame        rtems_interrupt_frame;
    5052
     53/*
     54 *  Define the type for an RTEMS API task priority.
     55 */
     56
     57typedef Priority_Control rtems_task_priority;
     58
     59#define RTEMS_NO_PRIORITY  RTEMS_CURRENT_PRIORITY
     60/*
     61 *  Define the type for an RTEMS API task mode.
     62 */
     63 
     64typedef Modes_Control rtems_mode;
     65
    5166#ifdef __cplusplus
    5267}
Note: See TracChangeset for help on using the changeset viewer.