From e41308eab8ae4505844d8e499664424f8c7f2bd1 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 22 Aug 2016 10:58:34 +0200 Subject: score: Introduce Thread_queue_Lock_context Introduce Thread_queue_Lock_context to contain the context necessary for thread queue lock and thread wait lock acquire/release operations to reduce the Thread_Control size. --- cpukit/libnetworking/rtems/rtems_glue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/libnetworking') diff --git a/cpukit/libnetworking/rtems/rtems_glue.c b/cpukit/libnetworking/rtems/rtems_glue.c index 2fca0e0902..9a7f82f514 100644 --- a/cpukit/libnetworking/rtems/rtems_glue.c +++ b/cpukit/libnetworking/rtems/rtems_glue.c @@ -375,7 +375,7 @@ rtems_bsdnet_semaphore_obtain (void) if (!the_networkSemaphore) rtems_panic ("rtems-net: network sema obtain: network not initialised\n"); _Thread_queue_Context_initialize(&queue_context); - _ISR_lock_ISR_disable(&queue_context.Lock_context); + _ISR_lock_ISR_disable(&queue_context.Lock_context.Lock_context); _Thread_queue_Context_set_no_timeout( &queue_context ); status = _CORE_recursive_mutex_Seize ( &the_networkSemaphore->Core_control.Mutex.Recursive, @@ -409,7 +409,7 @@ rtems_bsdnet_semaphore_release (void) if (!the_networkSemaphore) rtems_panic ("rtems-net: network sema obtain: network not initialised\n"); _Thread_queue_Context_initialize(&queue_context); - _ISR_lock_ISR_disable(&queue_context.Lock_context); + _ISR_lock_ISR_disable(&queue_context.Lock_context.Lock_context); status = _CORE_recursive_mutex_Surrender( &the_networkSemaphore->Core_control.Mutex.Recursive, _Thread_Executing, -- cgit v1.2.3