[PATCH 3/3] bsps/amd64: increase CPU alignment to 16

Karel Gardas karel at functional.vision
Sun Apr 16 21:24:03 UTC 2023


AMD64 requires SSE support which operates on 128bit data values.
---
 cpukit/score/cpu/x86_64/include/rtems/score/cpu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/score/cpu/x86_64/include/rtems/score/cpu.h b/cpukit/score/cpu/x86_64/include/rtems/score/cpu.h
index 2671c607a7..b26fb4c8ad 100644
--- a/cpukit/score/cpu/x86_64/include/rtems/score/cpu.h
+++ b/cpukit/score/cpu/x86_64/include/rtems/score/cpu.h
@@ -144,7 +144,7 @@ typedef struct {
 #define CPU_PROVIDES_ISR_IS_IN_PROGRESS FALSE
 #define CPU_STACK_MINIMUM_SIZE          (1024*4)
 #define CPU_SIZEOF_POINTER         8
-#define CPU_ALIGNMENT              8
+#define CPU_ALIGNMENT              16
 #define CPU_HEAP_ALIGNMENT         CPU_ALIGNMENT
 #define CPU_STACK_ALIGNMENT        16
 #define CPU_INTERRUPT_STACK_ALIGNMENT CPU_CACHE_LINE_BYTES
-- 
2.25.1



More information about the devel mailing list