summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/rtems/partimpl.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-14 10:31:45 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-11-24 07:40:24 +0100
commitaccbe3c40a4503f37973f1424773c77c8d752217 (patch)
treec989a6af08d266f17c485353989dcd3c35e5cc8b /cpukit/include/rtems/rtems/partimpl.h
parentrtems: Move _Partition_Is_buffer_area_aligned() (diff)
downloadrtems-accbe3c40a4503f37973f1424773c77c8d752217.tar.bz2
rtems: Move _Partition_Initialize()
It is only used by rtems_partition_create(). Fix integer types.
Diffstat (limited to '')
-rw-r--r--cpukit/include/rtems/rtems/partimpl.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/cpukit/include/rtems/rtems/partimpl.h b/cpukit/include/rtems/rtems/partimpl.h
index dcffe757c7..ab0bdc76f7 100644
--- a/cpukit/include/rtems/rtems/partimpl.h
+++ b/cpukit/include/rtems/rtems/partimpl.h
@@ -19,7 +19,6 @@
#define _RTEMS_RTEMS_PARTIMPL_H
#include <rtems/rtems/partdata.h>
-#include <rtems/score/chainimpl.h>
#include <rtems/score/objectimpl.h>
#ifdef __cplusplus
@@ -46,30 +45,6 @@ RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Allocate ( void )
return (Partition_Control *) _Objects_Allocate( &_Partition_Information );
}
-RTEMS_INLINE_ROUTINE void _Partition_Initialize(
- Partition_Control *the_partition,
- void *starting_address,
- uint32_t length,
- uint32_t buffer_size,
- rtems_attribute attribute_set
-)
-{
- the_partition->starting_address = starting_address;
- the_partition->length = length;
- the_partition->buffer_size = buffer_size;
- the_partition->attribute_set = attribute_set;
- the_partition->number_of_used_blocks = 0;
-
- _Chain_Initialize(
- &the_partition->Memory,
- starting_address,
- length / buffer_size,
- buffer_size
- );
-
- _ISR_lock_Initialize( &the_partition->Lock, "Partition" );
-}
-
/**
* @brief Calls _Objects_Get() using the ::_Partition_Information.
*