Changeset 9700578 in rtems for cpukit/score/inline


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/inline/rtems/score
Files:
2 edited

Legend:

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

    rea74482 r9700578  
    3939)
    4040{
    41   return ( vector < CPU_INTERRUPT_NUMBER_OF_VECTORS );
     41  return ( vector <= CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER );
    4242}
    4343
  • cpukit/score/inline/rtems/score/priority.inl

    rea74482 r9700578  
    7979}
    8080
     81#if ( CPU_USE_GENERIC_BITFIELD_CODE == TRUE )
     82 
     83/*PAGE
     84 *
     85 *  _Priority_Mask
     86 *
     87 */
     88 
     89STATIC INLINE unsigned32 _Priority_Mask (
     90  unsigned32 bit_number
     91)
     92{
     93  return (0x8000 >> bit_number);
     94}
     95 
     96 
     97/*PAGE
     98 *
     99 *  _Priority_Bits_index
     100 *
     101 */
     102 
     103STATIC INLINE unsigned32 _Priority_Bits_index (
     104  unsigned32 bit_number
     105)
     106{
     107  return bit_number;
     108}
     109
     110#endif
     111
    81112/*PAGE
    82113 *
     
    122153  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );
    123154
    124   return (_CPU_Priority_Bits_index( major ) << 4) +
    125           _CPU_Priority_Bits_index( minor );
     155  return (_Priority_Bits_index( major ) << 4) +
     156          _Priority_Bits_index( minor );
    126157}
    127158
     
    145176
    146177  the_priority_map->minor =
    147     &_Priority_Bit_map[ _CPU_Priority_Bits_index(major) ];
    148 
    149   mask = _CPU_Priority_Mask( major );
     178    &_Priority_Bit_map[ _Priority_Bits_index(major) ];
     179
     180  mask = _Priority_Mask( major );
    150181  the_priority_map->ready_major = mask;
    151182  the_priority_map->block_major = ~mask;
    152183
    153   mask = _CPU_Priority_Mask( minor );
     184  mask = _Priority_Mask( minor );
    154185  the_priority_map->ready_minor = mask;
    155186  the_priority_map->block_minor = ~mask;
Note: See TracChangeset for help on using the changeset viewer.