summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-14 10:32:18 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-11-24 07:40:24 +0100
commit3c093d6752fb8e51216d734b60db1e97ecdb3fe4 (patch)
tree8c793a31583cc6d41b7d5afd2b4e5ca6f268ca1a /cpukit/rtems/src
parentrtems: Move _Partition_Initialize() (diff)
downloadrtems-3c093d6752fb8e51216d734b60db1e97ecdb3fe4.tar.bz2
rtems: Move _Partition_Allocate()
It is only used by rtems_partition_create().
Diffstat (limited to 'cpukit/rtems/src')
-rw-r--r--cpukit/rtems/src/partcreate.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpukit/rtems/src/partcreate.c b/cpukit/rtems/src/partcreate.c
index 1ac08d6bc0..7eea6b3bcf 100644
--- a/cpukit/rtems/src/partcreate.c
+++ b/cpukit/rtems/src/partcreate.c
@@ -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,