summaryrefslogtreecommitdiffstats
path: root/cpukit/sapi
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-05-11 20:07:47 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-05-11 20:07:47 +0000
commit70669f28adb402ec2521ad1337ba6dfa470ed137 (patch)
tree4d8dc27f35cfca2ff37bb67c3b052906ced87cb7 /cpukit/sapi
parent2007-05-11 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-70669f28adb402ec2521ad1337ba6dfa470ed137.tar.bz2
2007-05-11 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/src/region.c, sapi/src/exinit.c: Now that the Region is an optional manager, we cannot depend on it do initialize the internal Allocator Mutex. This was always a questionable place to do it, so this is a cleanup.
Diffstat (limited to 'cpukit/sapi')
-rw-r--r--cpukit/sapi/src/exinit.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpukit/sapi/src/exinit.c b/cpukit/sapi/src/exinit.c
index 109826a132..ec3c8fe232 100644
--- a/cpukit/sapi/src/exinit.c
+++ b/cpukit/sapi/src/exinit.c
@@ -158,6 +158,12 @@ rtems_interrupt_level rtems_initialize_executive_early(
_Objects_Information_table[OBJECTS_INTERNAL_API] = _Internal_Objects;
+ /*
+ * Initialize the internal allocator Mutex
+ */
+ _API_Mutex_Initialization( 1 );
+ _API_Mutex_Allocate( _RTEMS_Allocator_Mutex );
+
_Priority_Handler_initialization();
_Watchdog_Handler_initialization();