[PATCH 2/4] rtems: Fix RTEMS_TASK_STORAGE_ALIGNMENT
Sebastian Huber
sebastian.huber at embedded-brains.de
Wed Mar 3 08:40:20 UTC 2021
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 d896e66bd5..a8fe267884 100644
--- a/cpukit/include/rtems/rtems/tasks.h
+++ b/cpukit/include/rtems/rtems/tasks.h
@@ -1507,7 +1507,7 @@ rtems_status_code rtems_task_start(
* 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
/* Generated from spec:/rtems/task/if/storage-size */
--
2.26.2
More information about the devel
mailing list