[rtems commit] riscv: Fix CPU_ALIGNMENT

Sebastian Huber sebh at rtems.org
Thu Aug 2 07:44:29 UTC 2018


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Aug  2 09:41:08 2018 +0200

riscv: Fix CPU_ALIGNMENT

Update #3433.

---

 cpukit/score/cpu/riscv/include/rtems/score/cpu.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cpukit/score/cpu/riscv/include/rtems/score/cpu.h b/cpukit/score/cpu/riscv/include/rtems/score/cpu.h
index ce73651..64a915e 100644
--- a/cpukit/score/cpu/riscv/include/rtems/score/cpu.h
+++ b/cpukit/score/cpu/riscv/include/rtems/score/cpu.h
@@ -76,12 +76,14 @@ extern "C" {
 
 #endif /* __riscv_xlen */
 
-#define CPU_ALIGNMENT 8
+/* RISC-V ELF psABI specification */
+#define CPU_ALIGNMENT 16
 
 #define CPU_HEAP_ALIGNMENT CPU_ALIGNMENT
 
 #define CPU_PARTITION_ALIGNMENT CPU_ALIGNMENT
 
+/* RISC-V ELF psABI specification */
 #define CPU_STACK_ALIGNMENT 16
 
 #define CPU_INTERRUPT_STACK_ALIGNMENT CPU_CACHE_LINE_BYTES




More information about the vc mailing list