From 97005786d89fd7a57b5fe82f713cea739916f3da Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 30 Oct 1995 21:54:45 +0000 Subject: SPARC port passes all tests --- cpukit/score/include/rtems/score/priority.h | 45 +++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) (limited to 'cpukit/score/include/rtems/score/priority.h') diff --git a/cpukit/score/include/rtems/score/priority.h b/cpukit/score/include/rtems/score/priority.h index 6639d56e0a..a4a96045d5 100644 --- a/cpukit/score/include/rtems/score/priority.h +++ b/cpukit/score/include/rtems/score/priority.h @@ -113,6 +113,51 @@ STATIC INLINE unsigned32 _Priority_Minor ( Priority_Control the_priority ); +/* + * _Priority_Mask + * + * DESCRIPTION: + * + * This function returns the mask associated with the major or minor + * number passed to it. + */ + +#if ( CPU_USE_GENERIC_BITFIELD_CODE == TRUE ) + +STATIC INLINE unsigned32 _Priority_Mask ( + unsigned32 bit_number +); + +#else + +#define _Priority_Mask( _bit_number ) \ + _CPU_Priority_Mask( _bit_number ) + +#endif + +/* + * _Priority_Bits_index + * + * DESCRIPTION: + * + * This function translates the bit numbers returned by the bit scan + * of a priority bit field into something suitable for use as + * a major or minor component of a priority. + */ + +#if ( CPU_USE_GENERIC_BITFIELD_CODE == TRUE ) + +STATIC INLINE unsigned32 _Priority_Bits_index ( + unsigned32 bit_number +); + +#else + +#define _Priority_Bits_index( _priority ) \ + _CPU_Priority_bits_index( _priority ) + +#endif + /* * _Priority_Add_to_bit_map * -- cgit v1.2.3