Changeset 9700578 in rtems for cpukit/score/macros


Ignore:
Timestamp:
Oct 30, 1995, 9:54:45 PM (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
c4808ca
Parents:
ea74482
Message:

SPARC port passes all tests

Location:
cpukit/score/macros/rtems/score
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/score/macros/rtems/score/isr.inl

    rea74482 r9700578  
    3434
    3535#define _ISR_Is_vector_number_valid( _vector ) \
    36   ( (_vector) < CPU_INTERRUPT_NUMBER_OF_VECTORS )
     36  ( (_vector) <= CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER )
    3737
    3838/*PAGE
  • cpukit/score/macros/rtems/score/priority.inl

    rea74482 r9700578  
    6565#define _Priority_Minor( _the_priority ) ( (_the_priority) % 16 )
    6666
     67#if ( CPU_USE_GENERIC_BITFIELD_CODE == TRUE )
     68 
     69/*PAGE
     70 *
     71 *  _Priority_Mask
     72 *
     73 */
     74 
     75#define _Priority_Mask( _bit_number ) \
     76  (0x8000 >> _bit_number)
     77 
     78/*PAGE
     79 *
     80 *  _Priority_Bits_index
     81 *
     82 */
     83 
     84#define _Priority_Bits_index( _bit_number ) \
     85  (_bit_number)
     86 
     87#endif
     88 
    6789/*PAGE
    6890 *
     
    104126    _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor ); \
    105127    \
    106     (_high_priority) = (_CPU_Priority_Bits_index( major ) * 16) +  \
    107                        _CPU_Priority_Bits_index( minor ); \
     128    (_high_priority) = (_Priority_Bits_index( major ) * 16) +  \
     129                        _Priority_Bits_index( minor ); \
    108130  }
    109131
     
    125147    \
    126148    (_the_priority_map)->minor =  \
    127       &_Priority_Bit_map[ _CPU_Priority_Bits_index(_major) ]; \
     149      &_Priority_Bit_map[ _Priority_Bits_index(_major) ]; \
    128150    \
    129     _mask = _CPU_Priority_Mask( _major ); \
     151    _mask = _Priority_Mask( _major ); \
    130152    (_the_priority_map)->ready_major = _mask; \
    131153    (_the_priority_map)->block_major = ~_mask; \
    132154    \
    133     _mask = _CPU_Priority_Mask( _minor ); \
     155    _mask = _Priority_Mask( _minor ); \
    134156    (_the_priority_map)->ready_minor = _mask; \
    135157    (_the_priority_map)->block_minor = ~_mask; \
Note: See TracChangeset for help on using the changeset viewer.