diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-09-09 10:00:47 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-09-09 10:00:47 +0000 |
commit | f604a9428061f68748ff0be80104f0b0e03c8b8e (patch) | |
tree | 002ea57811139c4df098a416b68c6dddf8bef9e7 /cpukit/score/cpu/nios2 | |
parent | 2011-09-07 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-f604a9428061f68748ff0be80104f0b0e03c8b8e.tar.bz2 |
2011-09-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
* nios2-thread-dispatch-disabled.c: Use offsetof() instead of
RTEMS_offsetof().
Diffstat (limited to 'cpukit/score/cpu/nios2')
-rw-r--r-- | cpukit/score/cpu/nios2/ChangeLog | 5 | ||||
-rw-r--r-- | cpukit/score/cpu/nios2/nios2-thread-dispatch-disabled.c | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/cpukit/score/cpu/nios2/ChangeLog b/cpukit/score/cpu/nios2/ChangeLog index 33deb926fe..1f56054537 100644 --- a/cpukit/score/cpu/nios2/ChangeLog +++ b/cpukit/score/cpu/nios2/ChangeLog @@ -1,3 +1,8 @@ +2011-09-09 Sebastian Huber <sebastian.huber@embedded-brains.de> + + * nios2-thread-dispatch-disabled.c: Use offsetof() instead of + RTEMS_offsetof(). + 2011-09-02 Sebastian Huber <sebastian.huber@embedded-brains.de> * rtems/score/nios2-utility.h, nios2-isr-set-level.c, diff --git a/cpukit/score/cpu/nios2/nios2-thread-dispatch-disabled.c b/cpukit/score/cpu/nios2/nios2-thread-dispatch-disabled.c index a07da63db8..976546c735 100644 --- a/cpukit/score/cpu/nios2/nios2-thread-dispatch-disabled.c +++ b/cpukit/score/cpu/nios2/nios2-thread-dispatch-disabled.c @@ -23,8 +23,7 @@ #define NIOS2_ASSERT_OFFSET(field, off) \ RTEMS_STATIC_ASSERT( \ - RTEMS_offsetof(Context_Control, field) \ - == NIOS2_CONTEXT_OFFSET_ ## off, \ + offsetof(Context_Control, field) == NIOS2_CONTEXT_OFFSET_ ## off, \ nios2_context_offset_ ## field \ ) |