[rtems commit] libdebugger: Unmap thread priorities

Sebastian Huber sebh at rtems.org
Wed Jun 26 05:58:20 UTC 2019


Module:    rtems
Branch:    master
Commit:    54ac94576471db82668e5d3e703d6b7a93ee4fd8
Changeset: http://git.rtems.org/rtems/commit/?id=54ac94576471db82668e5d3e703d6b7a93ee4fd8

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Jun 26 07:57:50 2019 +0200

libdebugger: Unmap thread priorities

---

 cpukit/libdebugger/rtems-debugger-threads.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/cpukit/libdebugger/rtems-debugger-threads.c b/cpukit/libdebugger/rtems-debugger-threads.c
index 6a9d6a4..430ca4a 100644
--- a/cpukit/libdebugger/rtems-debugger-threads.c
+++ b/cpukit/libdebugger/rtems-debugger-threads.c
@@ -31,6 +31,7 @@
 
 #include <rtems.h>
 #include <rtems/assoc.h>
+#include <rtems/score/schedulerimpl.h>
 #include <rtems/score/threadimpl.h>
 
 #include <rtems/debugger/rtems-debugger-server.h>
@@ -503,13 +504,13 @@ rtems_debugger_thread_is_stepping(rtems_id id, DB_UINT pc)
 int
 rtems_debugger_thread_current_priority(rtems_debugger_thread* thread)
 {
-  return _Thread_Get_priority(thread->tcb);
+  return SCHEDULER_PRIORITY_UNMAP(_Thread_Get_priority(thread->tcb));
 }
 
 int
 rtems_debugger_thread_real_priority(rtems_debugger_thread* thread)
 {
-  return thread->tcb->Real_priority.priority;
+  return SCHEDULER_PRIORITY_UNMAP(thread->tcb->Real_priority.priority);
 }
 
 int



More information about the vc mailing list