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:26:53 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-11-24 07:38:41 +0100
commita61e221d04a1df5d113606ad2c2c978e2c578655 (patch)
tree28beb873f713d8f2d13439574b1c70d025e409fa /cpukit/include/rtems/rtems/partimpl.h
parentrtems: Move _Partition_Is_buffer_valid() (diff)
downloadrtems-a61e221d04a1df5d113606ad2c2c978e2c578655.tar.bz2
rtems: Move _Partition_Is_buffer_on_boundary()
It is used only by rtems_partition_return_buffer(). Make the PTCB the first parameter. Rename to _Partition_Is_address_on_buffer_boundary().
Diffstat (limited to 'cpukit/include/rtems/rtems/partimpl.h')
-rw-r--r--cpukit/include/rtems/rtems/partimpl.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/cpukit/include/rtems/rtems/partimpl.h b/cpukit/include/rtems/rtems/partimpl.h
index 23d5422bec..0d15d1e991 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/address.h>
#include <rtems/score/chainimpl.h>
#include <rtems/score/objectimpl.h>
@@ -35,27 +34,6 @@ extern "C" {
* @{
*/
-/**
- * @brief Checks whether is on a valid buffer boundary for the_partition.
- *
- * This function returns TRUE if the_buffer is on a valid buffer
- * boundary for the_partition, and FALSE otherwise.
- */
-RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_on_boundary (
- void *the_buffer,
- Partition_Control *the_partition
-)
-{
- intptr_t offset;
-
- offset = _Addresses_Subtract(
- the_buffer,
- the_partition->starting_address
- );
-
- return ((offset % the_partition->buffer_size) == 0);
-}
-
RTEMS_INLINE_ROUTINE bool _Partition_Is_buffer_size_aligned(
uint32_t buffer_size
)