diff options
Diffstat (limited to 'cpukit/libblock/src/bdbuf.c')
-rw-r--r-- | cpukit/libblock/src/bdbuf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libblock/src/bdbuf.c b/cpukit/libblock/src/bdbuf.c index fb6ea45ebc..16c39f8df7 100644 --- a/cpukit/libblock/src/bdbuf.c +++ b/cpukit/libblock/src/bdbuf.c @@ -79,13 +79,13 @@ typedef rtems_mode preemption_key; #define DISABLE_PREEMPTION(key) \ do { \ - rtems_task_mode(RTEMS_PREEMPT_MASK, RTEMS_NO_PREEMPT, &(key)); \ + rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &(key)); \ } while (0) #define ENABLE_PREEMPTION(key) \ do { \ rtems_mode temp; \ - rtems_task_mode(RTEMS_PREEMPT_MASK, (key), &temp); \ + rtems_task_mode((key), RTEMS_PREEMPT_MASK, &temp); \ } while (0) #else |