Changeset 828be6d in rtems for cpukit/libblock/src/bdbuf.c


Ignore:
Timestamp:
Jan 3, 2003, 4:39:46 PM (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
8f10c92
Parents:
b9fa9f0
Message:

2003-01-03 Eugeny S. Mints <Eugeny.Mints@…>

  • src/ata.c, src/bdbuf.c: Correct invocation of rtems_task_mode() so the task's preemption mode setting is properly maintained.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libblock/src/bdbuf.c

    rb9fa9f0 r828be6d  
    8080#define DISABLE_PREEMPTION(key) \
    8181    do {                                                               \
    82         rtems_task_mode(RTEMS_PREEMPT_MASK, RTEMS_NO_PREEMPT, &(key)); \
     82        rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &(key)); \
    8383    } while (0)
    8484
     
    8686    do {                                                        \
    8787        rtems_mode temp;                                        \
    88         rtems_task_mode(RTEMS_PREEMPT_MASK, (key), &temp);      \
     88        rtems_task_mode((key), RTEMS_PREEMPT_MASK, &temp);      \
    8989    } while (0)
    9090
Note: See TracChangeset for help on using the changeset viewer.