diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-11-29 06:23:27 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-12-04 10:53:39 +0100 |
commit | 6c2b8a4b35536a5f99ba1ef91139485b011dafc1 (patch) | |
tree | b1ab330104094ec83051c932c4d5cb9e653a4568 /cpukit/sapi/src | |
parent | ada/sp09: Fix timer server test case (diff) | |
download | rtems-6c2b8a4b35536a5f99ba1ef91139485b011dafc1.tar.bz2 |
score: Use self-contained API mutex
Use a self-contained recursive mutex for API_Mutex_Control. The API
mutexes are protected against asynchronous thread cancellation.
Add dedicated mutexes for libatomic and TOD.
Close #2629.
Close #2630.
Diffstat (limited to 'cpukit/sapi/src')
-rw-r--r-- | cpukit/sapi/src/exinit.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/cpukit/sapi/src/exinit.c b/cpukit/sapi/src/exinit.c index ed269d5566..6ec5a7662e 100644 --- a/cpukit/sapi/src/exinit.c +++ b/cpukit/sapi/src/exinit.c @@ -27,7 +27,6 @@ #include <rtems/sysinit.h> #include <rtems/score/sysstate.h> -#include <rtems/score/apimutex.h> #include <rtems/score/copyrt.h> #include <rtems/score/heap.h> #include <rtems/score/interr.h> @@ -59,10 +58,6 @@ _Objects_Information_table[ OBJECTS_APIS_LAST + 1 ] = { &_POSIX_Objects[ 0 ] }; -API_Mutex_Control *_RTEMS_Allocator_Mutex; - -API_Mutex_Control *_Once_Mutex; - static void rtems_initialize_data_structures(void) { /* @@ -83,10 +78,6 @@ static void rtems_initialize_data_structures(void) _ISR_Handler_initialization(); - _API_Mutex_Initialization( 2 ); - _API_Mutex_Allocate( &_RTEMS_Allocator_Mutex ); - _API_Mutex_Allocate( &_Once_Mutex ); - _Thread_Handler_initialization(); _Scheduler_Handler_initialization(); |