summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-09-06 10:50:50 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-09-06 10:52:19 +0200
commit1dd8ffff9fd9937cd97d477eb5c73f7430377b72 (patch)
tree70ad5052fa02806b2a8fe95016398c5301f0b579
parentcapture: Workaround to avoid misaligned access (diff)
downloadrtems-1dd8ffff9fd9937cd97d477eb5c73f7430377b72.tar.bz2
capture: Use proper accessor functions
-rw-r--r--cpukit/libmisc/capture/capture.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/libmisc/capture/capture.c b/cpukit/libmisc/capture/capture.c
index 6fc2f095d0..69015c8c1a 100644
--- a/cpukit/libmisc/capture/capture.c
+++ b/cpukit/libmisc/capture/capture.c
@@ -397,8 +397,8 @@ rtems_capture_record_open (rtems_tcb* tcb,
in.size = size;
in.task_id = tcb->Object.id;
in.events = (events |
- (tcb->real_priority) |
- (tcb->current_priority << 8));
+ rtems_capture_task_real_priority (tcb) |
+ (rtems_capture_task_curr_priority (tcb) << 8));
rtems_capture_get_time (&in.time);
@@ -496,8 +496,8 @@ bool rtems_capture_filter (rtems_tcb* tcb, uint32_t events)
* watch ceiling, and the global watch or task watch is enabled.
*/
if ((events & RTEMS_CAPTURE_RECORD_EVENTS) ||
- ((tcb->real_priority >= capture_ceiling) &&
- (tcb->real_priority <= capture_floor) &&
+ ((rtems_capture_task_real_priority (tcb) >= capture_ceiling) &&
+ (rtems_capture_task_real_priority (tcb) <= capture_floor) &&
((capture_flags_global & RTEMS_CAPTURE_GLOBAL_WATCH) ||
(control && (control->flags & RTEMS_CAPTURE_WATCH)))))
{