summaryrefslogtreecommitdiffstats
path: root/cpukit/score/macros/rtems/score/tqdata.inl
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/score/macros/rtems/score/tqdata.inl')
-rw-r--r--cpukit/score/macros/rtems/score/tqdata.inl4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/macros/rtems/score/tqdata.inl b/cpukit/score/macros/rtems/score/tqdata.inl
index df1508104c..5ffb79bcb1 100644
--- a/cpukit/score/macros/rtems/score/tqdata.inl
+++ b/cpukit/score/macros/rtems/score/tqdata.inl
@@ -24,7 +24,7 @@
*/
#define _Thread_queue_Header_number( _the_priority ) \
- ( (_the_priority) >> 6 )
+ ((_the_priority) / TASK_QUEUE_DATA_PRIORITIES_PER_HEADER)
/*PAGE
*
@@ -33,7 +33,7 @@
*/
#define _Thread_queue_Is_reverse_search( _the_priority ) \
- ( (_the_priority) & 0x20 )
+ ( (_the_priority) & TASK_QUEUE_DATA_REVERSE_SEARCH_MASK )
/*PAGE
*