summaryrefslogtreecommitdiffstats
path: root/cpukit/libblock/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-01-03 16:39:46 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-01-03 16:39:46 +0000
commit828be6d2f4f6bd4b6936eeeefecfeb89ff73662a (patch)
tree4b22c85366b6c2a22d2cbec75f079e258bc054ae /cpukit/libblock/src
parent2003-01-03 Eugeny S. Mints <Eugeny.Mints@oktet.ru> (diff)
downloadrtems-828be6d2f4f6bd4b6936eeeefecfeb89ff73662a.tar.bz2
2003-01-03 Eugeny S. Mints <Eugeny.Mints@oktet.ru>
* src/ata.c, src/bdbuf.c: Correct invocation of rtems_task_mode() so the task's preemption mode setting is properly maintained.
Diffstat (limited to 'cpukit/libblock/src')
-rw-r--r--cpukit/libblock/src/ata.c4
-rw-r--r--cpukit/libblock/src/bdbuf.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/libblock/src/ata.c b/cpukit/libblock/src/ata.c
index 3087d62141..f0304bfda5 100644
--- a/cpukit/libblock/src/ata.c
+++ b/cpukit/libblock/src/ata.c
@@ -38,13 +38,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
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