forked from Imagelibrary/rtems
rtems: Move _Partition_Allocate()
It is only used by rtems_partition_create().
This commit is contained in:
@@ -33,18 +33,6 @@ extern "C" {
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Allocates a partition control block from the
|
|
||||||
* inactive chain of free partition control blocks.
|
|
||||||
*
|
|
||||||
* This function allocates a partition control block from
|
|
||||||
* the inactive chain of free partition control blocks.
|
|
||||||
*/
|
|
||||||
RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Allocate ( void )
|
|
||||||
{
|
|
||||||
return (Partition_Control *) _Objects_Allocate( &_Partition_Information );
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Calls _Objects_Get() using the ::_Partition_Information.
|
* @brief Calls _Objects_Get() using the ::_Partition_Information.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -27,6 +27,11 @@
|
|||||||
#include <rtems/score/sysstate.h>
|
#include <rtems/score/sysstate.h>
|
||||||
#include <rtems/sysinit.h>
|
#include <rtems/sysinit.h>
|
||||||
|
|
||||||
|
static Partition_Control *_Partition_Allocate( void )
|
||||||
|
{
|
||||||
|
return (Partition_Control *) _Objects_Allocate( &_Partition_Information );
|
||||||
|
}
|
||||||
|
|
||||||
static void _Partition_Initialize(
|
static void _Partition_Initialize(
|
||||||
Partition_Control *the_partition,
|
Partition_Control *the_partition,
|
||||||
void *starting_address,
|
void *starting_address,
|
||||||
|
|||||||
Reference in New Issue
Block a user