summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/include/ringbuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/include/ringbuf.h')
-rw-r--r--cpukit/libcsupport/include/ringbuf.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/cpukit/libcsupport/include/ringbuf.h b/cpukit/libcsupport/include/ringbuf.h
index 13821a545d..05bcceb6c1 100644
--- a/cpukit/libcsupport/include/ringbuf.h
+++ b/cpukit/libcsupport/include/ringbuf.h
@@ -36,22 +36,22 @@ typedef struct {
#define Ring_buffer_Add_character( _buffer, _ch ) \
do { \
- rtems_interrupt_level isrlevel; \
+ rtems_interrupt_lock_context lock_context; \
\
- rtems_interrupt_lock_acquire( &(_buffer)->lock, isrlevel ); \
+ rtems_interrupt_lock_acquire( &(_buffer)->lock, &lock_context ); \
(_buffer)->tail = ((_buffer)->tail+1) % RINGBUF_QUEUE_LENGTH; \
(_buffer)->buffer[ (_buffer)->tail ] = (_ch); \
- rtems_interrupt_lock_release( &(_buffer)->lock, isrlevel ); \
+ rtems_interrupt_lock_release( &(_buffer)->lock, &lock_context ); \
} while ( 0 )
#define Ring_buffer_Remove_character( _buffer, _ch ) \
do { \
- rtems_interrupt_level isrlevel; \
+ rtems_interrupt_lock_context lock_context; \
\
- rtems_interrupt_lock_acquire( &(_buffer)->lock, isrlevel ); \
+ rtems_interrupt_lock_acquire( &(_buffer)->lock, &lock_context ); \
(_buffer)->head = ((_buffer)->head+1) % RINGBUF_QUEUE_LENGTH; \
(_ch) = (_buffer)->buffer[ (_buffer)->head ]; \
- rtems_interrupt_lock_release( &(_buffer)->lock, isrlevel ); \
+ rtems_interrupt_lock_release( &(_buffer)->lock, &lock_context ); \
} while ( 0 )
#endif