summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-09-30 14:21:32 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-10-07 08:10:52 +0200
commit97e9728306a692ce7870db29c6b5d86dd9560692 (patch)
tree416d8536877fb0524e63967ea1bda111b901b402 /cpukit
parentbuild: Fix BSP name (diff)
downloadrtems-97e9728306a692ce7870db29c6b5d86dd9560692.tar.bz2
rtems: Add RTEMS_PARTITION_ALIGNMENT
Update #4105.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/include/rtems/rtems/part.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/cpukit/include/rtems/rtems/part.h b/cpukit/include/rtems/rtems/part.h
index 5a6484329f..a3c3128a00 100644
--- a/cpukit/include/rtems/rtems/part.h
+++ b/cpukit/include/rtems/rtems/part.h
@@ -36,6 +36,15 @@ extern "C" {
/**@{*/
/**
+ * @brief This constant defines the minimum alignment of a partition buffer in
+ * bytes.
+ *
+ * Use it with RTEMS_ALIGNED() to define the alignment of partition buffer
+ * types or statically allocated partition buffer areas.
+ */
+#define RTEMS_PARTITION_ALIGNMENT CPU_SIZEOF_POINTER
+
+/**
* @brief RTEMS Partition Create
*
* Partition Manager