summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/tasksetpriority.c
diff options
context:
space:
mode:
authorDaniel Ramirez <javamonn@gmail.com>2013-12-20 21:44:12 -0600
committerGedare Bloom <gedare@rtems.org>2013-12-21 20:09:02 -0500
commit2bafb96037ae80be736e6df05fa3d91aeb4a4063 (patch)
treef1e1605c0e407d0d789d108ca7ef98c533dc16ff /cpukit/rtems/src/tasksetpriority.c
parentpsxtests/psxfatal01: add doc file (diff)
downloadrtems-2bafb96037ae80be736e6df05fa3d91aeb4a4063.tar.bz2
rtems: classic api to/from core priority conversions
Diffstat (limited to 'cpukit/rtems/src/tasksetpriority.c')
-rw-r--r--cpukit/rtems/src/tasksetpriority.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/cpukit/rtems/src/tasksetpriority.c b/cpukit/rtems/src/tasksetpriority.c
index 385990c635..8c1b88b1ed 100644
--- a/cpukit/rtems/src/tasksetpriority.c
+++ b/cpukit/rtems/src/tasksetpriority.c
@@ -42,9 +42,13 @@ rtems_status_code rtems_task_set_priority(
case OBJECTS_LOCAL:
/* XXX need helper to "convert" from core priority */
- *old_priority = the_thread->current_priority;
+ *old_priority = _RTEMS_tasks_Priority_from_Core(
+ the_thread->current_priority
+ );
if ( new_priority != RTEMS_CURRENT_PRIORITY ) {
- the_thread->real_priority = new_priority;
+ the_thread->real_priority = _RTEMS_tasks_Priority_to_Core(
+ new_priority
+ );
if ( the_thread->resource_count == 0 ||
the_thread->current_priority > new_priority )
_Thread_Change_priority( the_thread, new_priority, false );