From a6d48e3941123189084882866361ff009de1ee04 Mon Sep 17 00:00:00 2001 From: Till Straumann Date: Thu, 29 Oct 2009 03:15:03 +0000 Subject: 2009-10-28 Till Straumann * score/cpu/i386/rtems/score/cpu.h: Added #ifdef ASM constructs so that this header can be included from assembly code. Increased CPU_STACK_ALIGNMENT to 16 bytes. Gcc maintains 16-byte alignment and it may be a advantageous to provide initial 16-byte alignment. When using SSE some gcc versions may produce code that crashes if the stack is not 16-byte aligned. Make sure _CPU_Context_Initialize() sets the thread stack up so that it is aligned to CPU_CACHE_ALIGNMENT. * score/cpu/i386/cpu_asm.S: Align stack to CPU_CACHE_ALIGNMENT before calling C-code. --- cpukit/ChangeLog | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'cpukit/ChangeLog') diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 4274f071a9..d79f98f664 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,20 @@ +2009-10-28 Till Straumann + + * score/cpu/i386/rtems/score/cpu.h: + Added #ifdef ASM constructs so that this header can be + included from assembly code. + + Increased CPU_STACK_ALIGNMENT to 16 bytes. Gcc maintains + 16-byte alignment and it may be a advantageous to provide + initial 16-byte alignment. When using SSE some gcc versions + may produce code that crashes if the stack is not 16-byte aligned. + + Make sure _CPU_Context_Initialize() sets the thread stack + up so that it is aligned to CPU_CACHE_ALIGNMENT. + + * score/cpu/i386/cpu_asm.S: + Align stack to CPU_CACHE_ALIGNMENT before calling C-code. + 2009-10-27 Till Straumann * score/cpu/i386/rtems/asm.h: Added definition for cr4 register. -- cgit v1.2.3