diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-12-21 08:47:12 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-01-22 07:21:20 +0100 |
commit | fc438dae305525bf4118ef0d7b7ab5273d747520 (patch) | |
tree | 386f02e597eb46f0ff0c770f6b4a4322a6c76832 /cpukit/libmisc/monitor | |
parent | bsp/qoriq: Fix hypervisor guest interrupt init (diff) | |
download | rtems-fc438dae305525bf4118ef0d7b7ab5273d747520.tar.bz2 |
monitor: Fix thread priority values
Diffstat (limited to 'cpukit/libmisc/monitor')
-rw-r--r-- | cpukit/libmisc/monitor/mon-task.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/libmisc/monitor/mon-task.c b/cpukit/libmisc/monitor/mon-task.c index dbbebf545d..26528d7292 100644 --- a/cpukit/libmisc/monitor/mon-task.c +++ b/cpukit/libmisc/monitor/mon-task.c @@ -8,6 +8,7 @@ #include <rtems.h> #include <rtems/monitor.h> +#include <rtems/score/schedulerimpl.h> #include <rtems/score/threadimpl.h> #include <rtems/score/threadqimpl.h> @@ -110,7 +111,9 @@ rtems_monitor_task_canonical( canonical_task->entry = rtems_thread->Start.Entry; canonical_task->stack = rtems_thread->Start.Initial_stack.area; canonical_task->stack_size = rtems_thread->Start.Initial_stack.size; - canonical_task->priority = _Thread_Get_priority( rtems_thread ); + canonical_task->priority = SCHEDULER_PRIORITY_UNMAP( + _Thread_Get_priority( rtems_thread ) + ); canonical_task->events = api->Event.pending_events; /* * FIXME: make this optionally cpu_time_executed |