Changeset 45819022 in rtems for cpukit/score


Ignore:
Timestamp:
08/16/95 19:42:41 (29 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
199fa36
Parents:
7285a016
Message:

bug fixes to make macro implementations work

Location:
cpukit/score
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/include/rtems/score/tqdata.h

    r7285a016 r45819022  
    1212 *  notice must appear in all copies of this file and its derivatives.
    1313 *
    14  *  $Id$
     14 *  tqdata.h,v 1.2 1995/05/31 16:47:42 joel Exp
    1515 */
    1616
     
    3333typedef enum {
    3434  THREAD_QUEUE_DATA_FIFO_DISCIPLINE,     /* RTEMS_FIFO queue discipline */
    35   THREAD_QUEUE_DATA_PRIORITY_DISCIPLINE, /* RTEMS_PRIORITY queue discipline */
     35  THREAD_QUEUE_DATA_PRIORITY_DISCIPLINE  /* RTEMS_PRIORITY queue discipline */
    3636}   Thread_queue_Disciplines;
    3737
  • cpukit/score/include/rtems/score/wkspace.h

    r7285a016 r45819022  
    1313 *  notice must appear in all copies of this file and its derivatives.
    1414 *
    15  *  $Id$
     15 *  wkspace.h,v 1.2 1995/05/31 16:47:46 joel Exp
    1616 */
    1717
     
    7272 */
    7373
    74 STATIC INLINE void *_Workspace_Allocate_or_fatal_error(
     74void *_Workspace_Allocate_or_fatal_error(
    7575  unsigned32   size
    7676);
  • cpukit/score/inline/rtems/score/wkspace.inl

    r7285a016 r45819022  
    1212 *  notice must appear in all copies of this file and its derivatives.
    1313 *
    14  *  $Id$
     14 *  wkspace.inl,v 1.2 1995/05/31 16:48:49 joel Exp
    1515 */
    1616
     
    7070/*PAGE
    7171 *
    72  *  _Workspace_Allocate_or_fatal_error
    73  *
    74  */
    75 
    76 STATIC INLINE void *_Workspace_Allocate_or_fatal_error(
    77   unsigned32   size
    78 )
    79 {
    80   void        *memory;
    81 
    82   memory = _Workspace_Allocate( size );
    83 
    84   if ( memory == NULL )
    85     rtems_fatal_error_occurred( RTEMS_UNSATISFIED );
    86 
    87   return memory;
    88 }
    89 
    90 /*PAGE
    91  *
    9272 *  _Workspace_Free
    9373 *
  • cpukit/score/macros/rtems/score/chain.inl

    r7285a016 r45819022  
    1212 *  notice must appear in all copies of this file and its derivatives.
    1313 *
    14  *  $Id$
     14 *  chain.inl,v 1.2 1995/05/31 16:48:59 joel Exp
    1515 */
    1616
     
    146146#define _Chain_Get_unprotected( _the_chain ) \
    147147  (( !_Chain_Is_empty( (_the_chain) ) ) \
    148     ? _Chain_Get_unprotected( (_the_chain) ) \
     148    ? _Chain_Get_first_unprotected( (_the_chain) ) \
    149149    : NULL)
    150150
  • cpukit/score/macros/rtems/score/heap.inl

    r7285a016 r45819022  
    1212 *  notice must appear in all copies of this file and its derivatives.
    1313 *
    14  *  $Id$
     14 *  heap.inl,v 1.2 1995/05/31 16:49:10 joel Exp
    1515 */
    1616
     
    4545      (void *)(_the_block), \
    4646      (_the_block)->back_flag & ~ HEAP_BLOCK_USED \
     47    ) \
    4748  )
    4849
     
    5657      (void *)(_the_block), \
    5758      (_the_block)->front_flag & ~ HEAP_BLOCK_USED \
     59    ) \
    5860  )
    5961
  • cpukit/score/macros/rtems/score/object.inl

    r7285a016 r45819022  
    1212 *  notice must appear in all copies of this file and its derivatives.
    1313 *
    14  *  $Id$
     14 *  object.inl,v 1.2 1995/05/31 16:49:20 joel Exp
    1515 */
    1616
     
    3939    (*(_c4) = ((_name)) & 0xff; \
    4040  }
    41 );
    4241
    4342/*PAGE
  • cpukit/score/macros/rtems/score/priority.inl

    r7285a016 r45819022  
    1212 *  notice must appear in all copies of this file and its derivatives.
    1313 *
    14  *  $Id$
     14 *  priority.inl,v 1.2 1995/05/31 16:49:27 joel Exp
    1515 */
    1616
     
    140140#define _Priority_Is_group_empty ( _the_priority ) \
    141141  ( (_the_priority) == 0 )
    142 }
     142
    143143#endif
    144144/* end of include file */
  • cpukit/score/macros/rtems/score/sysstate.inl

    r7285a016 r45819022  
    1212 *  notice must appear in all copies of this file and its derivatives.
    1313 *
    14  *  $Id$
     14 *  sysstate.inl,v 1.2 1995/05/31 16:49:39 joel Exp
    1515 */
    1616
     
    3131 */
    3232
    33 #define _System_state_Get( void ) \
     33#define _System_state_Get() \
    3434  (_System_state_Current)
    3535
  • cpukit/score/macros/rtems/score/wkspace.inl

    r7285a016 r45819022  
    1212 *  notice must appear in all copies of this file and its derivatives.
    1313 *
    14  *  $Id$
     14 *  wkspace.inl,v 1.2 1995/05/31 16:49:53 joel Exp
    1515 */
    1616
     
    6767/*PAGE
    6868 *
    69  *  _Workspace_Allocate_or_fatal_error
    70  *
    71  *  NOTE:  XXX FIX ME
    72  *
    73  *  When not using static inlines, this should really be a function
    74  *  somewhere.
    75  */
    76 
    77 static inline void _Workspace_Allocate_or_fatal_error(
    78   unsigned32   size
    79 )
    80 {
    81   void        *memory;
    82 
    83   memory = _Workspace_Allocate( size );
    84 
    85   if ( memory == NULL )
    86     rtems_fatal_error_occurred( RTEMS_UNSATISFIED );
    87 
    88   return memory;
    89 }
    90 
    91 /*PAGE
    92  *
    9369 *  _Workspace_Free
    9470 *
  • cpukit/score/src/thread.c

    r7285a016 r45819022  
    1111 *  notice must appear in all copies of this file and its derivatives.
    1212 *
    13  *  $Id$
     13 *  thread.c,v 1.5 1995/07/31 22:22:38 joel Exp
    1414 */
    1515
     
    629629)
    630630{
    631   Thread_Control *the_thread;
    632   Objects_Locations      location;
     631  Thread_Control    *the_thread;
     632  Objects_Locations  location;
    633633
    634634  the_thread = _Thread_Get( id, &location );
     
    792792
    793793STATIC INLINE Thread_Control *_Thread_Get (
    794   Objects_Id  id,
    795   unsigned32 *location
     794  Objects_Id         id,
     795  Objects_Locations *location
    796796)
    797797{
  • cpukit/score/src/wkspace.c

    r7285a016 r45819022  
    22 *  Workspace Handler
    33 *
    4  *  JUNK
     4 *  XXX
    55 *
    66 *  NOTE:
    7  *
    8  *  This file only exists to contain the one function which cannot
    9  *  be written as a macro when "static inlines" are not used.
    107 *
    118 *  COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.
     
    1714 *  notice must appear in all copies of this file and its derivatives.
    1815 *
    19  *  $Id$
     16 *  wkspace.c,v 1.4 1995/05/25 15:26:53 joel Exp
    2017 */
    2118
     
    2320#include <rtems/wkspace.h>
    2421#include <rtems/fatal.h>
    25 
    26 #ifndef USE_INLINES
    2722
    2823/*PAGE
     
    4540  return memory;
    4641}
    47 
    48 #endif   /* USE_INLINES */
    49 
Note: See TracChangeset for help on using the changeset viewer.