From 97e9728306a692ce7870db29c6b5d86dd9560692 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 30 Sep 2020 14:21:32 +0200 Subject: rtems: Add RTEMS_PARTITION_ALIGNMENT Update #4105. --- cpukit/include/rtems/rtems/part.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cpukit') 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 @@ -35,6 +35,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 * -- cgit v1.2.3