[rtems commit] rtems: Fix RTEMS_TASK_STORAGE_ALIGNMENT

Sebastian Huber sebh at rtems.org
Thu Mar 4 08:08:17 UTC 2021


Module:    rtems
Branch:    master
Commit:    30f6fd5b3fa8db79f56d4a0191a1da6031c73597
Changeset: http://git.rtems.org/rtems/commit/?id=30f6fd5b3fa8db79f56d4a0191a1da6031c73597

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Mar  3 08:04:55 2021 +0100

rtems: Fix RTEMS_TASK_STORAGE_ALIGNMENT

Make sure we meet the stack alignment requirement for user-provided
thread storage areas.

---

 cpukit/include/rtems/rtems/tasks.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/include/rtems/rtems/tasks.h b/cpukit/include/rtems/rtems/tasks.h
index 4e2e38d..f71cb1e 100644
--- a/cpukit/include/rtems/rtems/tasks.h
+++ b/cpukit/include/rtems/rtems/tasks.h
@@ -201,7 +201,7 @@ rtems_status_code rtems_task_create(
  * Use it with RTEMS_ALIGNED() to define the alignment of a statically
  * allocated task storage area.
  */
-#define RTEMS_TASK_STORAGE_ALIGNMENT CPU_HEAP_ALIGNMENT
+#define RTEMS_TASK_STORAGE_ALIGNMENT CPU_STACK_ALIGNMENT
 
 /**
  * @brief Returns the recommended task storage area size for the specified size



More information about the vc mailing list