rtems: Move _Partition_Allocate()

It is only used by rtems_partition_create().
This commit is contained in:
Sebastian Huber
2020-10-14 10:32:18 +02:00
parent accbe3c40a
commit 3c093d6752
2 changed files with 5 additions and 12 deletions

View File

@@ -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.
*

View File

@@ -27,6 +27,11 @@
#include <rtems/score/sysstate.h>
#include <rtems/sysinit.h>
static Partition_Control *_Partition_Allocate( void )
{
return (Partition_Control *) _Objects_Allocate( &_Partition_Information );
}
static void _Partition_Initialize(
Partition_Control *the_partition,
void *starting_address,