[rtems commit] capture: Fix get priority methods
Sebastian Huber
sebh at rtems.org
Wed Mar 7 12:04:35 UTC 2018
Module: rtems
Branch: master
Commit: ef900abd90bc48bcf94155568d7d917f9e805b3d
Changeset: http://git.rtems.org/rtems/commit/?id=ef900abd90bc48bcf94155568d7d917f9e805b3d
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Mar 7 13:01:19 2018 +0100
capture: Fix get priority methods
---
cpukit/include/rtems/capture.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cpukit/include/rtems/capture.h b/cpukit/include/rtems/capture.h
index f847ee0..9d0afdb 100644
--- a/cpukit/include/rtems/capture.h
+++ b/cpukit/include/rtems/capture.h
@@ -888,7 +888,7 @@ rtems_capture_task_start_priority (rtems_tcb* tcb)
static inline rtems_task_priority
rtems_capture_task_real_priority (rtems_tcb* tcb)
{
- return tcb->Real_priority.priority;
+ return SCHEDULER_PRIORITY_UNMAP (tcb->Real_priority.priority);
}
/**
@@ -903,7 +903,7 @@ rtems_capture_task_real_priority (rtems_tcb* tcb)
static inline rtems_task_priority
rtems_capture_task_curr_priority (rtems_tcb* tcb)
{
- return _Thread_Get_priority (tcb);
+ return SCHEDULER_PRIORITY_UNMAP (_Thread_Get_priority (tcb));
}
/**
More information about the vc
mailing list