summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/score/threadimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2019-06-28 08:30:11 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2019-06-28 08:30:11 +0200
commit5803f3738f8f97c2188bd36274e60602af515e7f (patch)
treec1af13d31586640d1e239396216f315adda42ad0 /cpukit/include/rtems/score/threadimpl.h
parentarm: Return the current handler from arm_cp15_set_exception_handler (diff)
downloadrtems-5803f3738f8f97c2188bd36274e60602af515e7f.tar.bz2
score: Add and use _Thread_Get_unmapped_priority().
Add and use _Thread_Get_unmapped_real_priority().
Diffstat (limited to 'cpukit/include/rtems/score/threadimpl.h')
-rw-r--r--cpukit/include/rtems/score/threadimpl.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/cpukit/include/rtems/score/threadimpl.h b/cpukit/include/rtems/score/threadimpl.h
index 490c7c83e0..2e41b80bd4 100644
--- a/cpukit/include/rtems/score/threadimpl.h
+++ b/cpukit/include/rtems/score/threadimpl.h
@@ -1601,6 +1601,34 @@ RTEMS_INLINE_ROUTINE Priority_Control _Thread_Get_priority(
}
/**
+ * @brief Returns the unmapped priority of the thread.
+ *
+ * @param the_thread The thread of which to get the unmapped priority.
+ *
+ * @return The unmapped priority of the thread.
+ */
+RTEMS_INLINE_ROUTINE Priority_Control _Thread_Get_unmapped_priority(
+ const Thread_Control *the_thread
+)
+{
+ return SCHEDULER_PRIORITY_UNMAP( _Thread_Get_priority( the_thread ) );
+}
+
+/**
+ * @brief Returns the unmapped real priority of the thread.
+ *
+ * @param the_thread The thread of which to get the unmapped real priority.
+ *
+ * @return The unmapped real priority of the thread.
+ */
+RTEMS_INLINE_ROUTINE Priority_Control _Thread_Get_unmapped_real_priority(
+ const Thread_Control *the_thread
+)
+{
+ return SCHEDULER_PRIORITY_UNMAP( the_thread->Real_priority.priority );
+}
+
+/**
* @brief Acquires the thread wait default lock inside a critical section
* (interrupts disabled).
*