From 77ff5599e0d8e6d91190a379be21a332f83252b0 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 10 Jun 2016 08:48:54 +0200 Subject: score: Introduce map priority scheduler operation Introduce map/unmap priority scheduler operations to map thread priority values from/to the user domain to/from the scheduler domain. Use the map priority operation to validate the thread priority. The EDF schedulers use this new operation to distinguish between normal priorities and priorities obtain through a job release. Update #2173. Update #2556. --- cpukit/rtems/include/rtems/rtems/tasksimpl.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cpukit/rtems/include/rtems/rtems/tasksimpl.h') diff --git a/cpukit/rtems/include/rtems/rtems/tasksimpl.h b/cpukit/rtems/include/rtems/rtems/tasksimpl.h index c7f8952bcf..b0432351f3 100644 --- a/cpukit/rtems/include/rtems/rtems/tasksimpl.h +++ b/cpukit/rtems/include/rtems/rtems/tasksimpl.h @@ -19,7 +19,7 @@ #include #include -#include +#include #include #ifdef __cplusplus @@ -96,7 +96,7 @@ RTEMS_INLINE_ROUTINE Priority_Control _RTEMS_Priority_To_core( { *valid = ( priority <= scheduler->maximum_priority ); - return (Priority_Control) priority; + return _Scheduler_Map_priority( scheduler, (Priority_Control) priority ); } /** @@ -113,7 +113,8 @@ RTEMS_INLINE_ROUTINE rtems_task_priority _RTEMS_Priority_From_core( Priority_Control priority ) { - return (rtems_task_priority) priority; + return (rtems_task_priority) + _Scheduler_Unmap_priority( scheduler, priority ); } /**@}*/ -- cgit v1.2.3