summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/no_cpu/include
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-03-03 08:39:33 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-03-04 09:08:03 +0100
commit4a765b47a56cf9ba09c13381eb0cccd595e97cbd (patch)
treea41972abc8ee33b7d4b0e967f13d50282409fdd4 /cpukit/score/cpu/no_cpu/include
parentMAINTAINERS: Add myself to write after approval (diff)
downloadrtems-4a765b47a56cf9ba09c13381eb0cccd595e97cbd.tar.bz2
score: Enforce CPU_STACK_ALIGNMENT requirements
Clarify CPU_STACK_ALIGNMENT requirements in no_cpu port. Add static assertion to enforce CPU_STACK_ALIGNMENT requirements.
Diffstat (limited to 'cpukit/score/cpu/no_cpu/include')
-rw-r--r--cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h b/cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h
index ea69a5b972..c067501502 100644
--- a/cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h
+++ b/cpukit/score/cpu/no_cpu/include/rtems/score/cpu.h
@@ -592,17 +592,16 @@ extern Context_Control_fp _CPU_Null_fp_context;
/**
* This number corresponds to the byte alignment requirement for the
* stack. This alignment requirement may be stricter than that for the
- * data types alignment specified by @ref CPU_ALIGNMENT. If the
- * @ref CPU_ALIGNMENT is strict enough for the stack, then this should be
- * set to 0.
+ * data types alignment specified by @ref CPU_ALIGNMENT.
*
- * NOTE: This must be a power of 2 either 0 or greater than @ref CPU_ALIGNMENT.
+ * NOTE: This must be a power of two and greater than or equal to
+ * @ref CPU_HEAP_ALIGNMENT.
*
* Port Specific Information:
*
* XXX document implementation including references if appropriate
*/
-#define CPU_STACK_ALIGNMENT 0
+#define CPU_STACK_ALIGNMENT CPU_HEAP_ALIGNMENT
/**
* The alignment of the interrupt stack in bytes.