forked from Imagelibrary/rtems
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.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
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.
|
||||
|
||||
2007-05-11 Joel Sherrill <joel.sherrill@OARcorp.com>
|
||||
|
||||
* libmisc/cpuuse/cpuuse.c, libmisc/stackchk/check.c,
|
||||
|
||||
@@ -42,10 +42,6 @@ void _Region_Manager_initialization(
|
||||
uint32_t maximum_regions
|
||||
)
|
||||
{
|
||||
/* XXX move me */
|
||||
_API_Mutex_Initialization( 1 );
|
||||
_API_Mutex_Allocate( _RTEMS_Allocator_Mutex );
|
||||
|
||||
_Objects_Initialize_information(
|
||||
&_Region_Information, /* object information table */
|
||||
OBJECTS_CLASSIC_API, /* object API */
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user