Changeset fc438dae in rtems


Ignore:
Timestamp:
Dec 21, 2017, 7:47:12 AM (22 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
6bc5e47
Parents:
b391fbc6
git-author:
Sebastian Huber <sebastian.huber@…> (12/21/17 07:47:12)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/22/18 06:21:20)
Message:

monitor: Fix thread priority values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libmisc/monitor/mon-task.c

    rb391fbc6 rfc438dae  
    99#include <rtems.h>
    1010#include <rtems/monitor.h>
     11#include <rtems/score/schedulerimpl.h>
    1112#include <rtems/score/threadimpl.h>
    1213#include <rtems/score/threadqimpl.h>
     
    111112    canonical_task->stack = rtems_thread->Start.Initial_stack.area;
    112113    canonical_task->stack_size = rtems_thread->Start.Initial_stack.size;
    113     canonical_task->priority = _Thread_Get_priority( rtems_thread );
     114    canonical_task->priority = SCHEDULER_PRIORITY_UNMAP(
     115      _Thread_Get_priority( rtems_thread )
     116    );
    114117    canonical_task->events = api->Event.pending_events;
    115118    /*
Note: See TracChangeset for help on using the changeset viewer.