CM3: ensure that all processes have eight-byte stack alignment.
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 21 Apr 2010 13:55:25 +0000 (13:55 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 21 Apr 2010 13:55:25 +0000 (13:55 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3494 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/cortex-m3/scripts/lm3s1968_rom.ld
bertos/cpu/types.h

index e6c0e018bb3250dee085894ab6b69dd53fb8133a..e0294b465f6c24de439abb8eb4597296cc6a7a4f 100644 (file)
@@ -104,15 +104,15 @@ SECTIONS
         * Data heap is allocate at end of stack.
         */
        PROVIDE (__msp_start = .);
-       . = ALIGN(4);
+       . = ALIGN(8);
        . += STACK_SIZE;
        PROVIDE (__msp_end = .);
 
        PROVIDE (__psp_start = .);
-       . = ALIGN(4);
+       . = ALIGN(8);
        . += STACK_SIZE;
        PROVIDE (__psp_end = .);
 
        PROVIDE (__heap_start = .);
-       . = ALIGN(4);
+       . = ALIGN(8);
 }
index 3e56a360f08da48b56296c0d6ee853b79de09aa6..d7e3e8bde0b2c08cb51951b4f5ec6282cf80210f 100644 (file)
        typedef uint32_t cpu_stack_t;
        #define SIZEOF_CPUSTACK_T 4
 
-       #if CPU_ARM
-               typedef uint64_t cpu_aligned_stack_t;
-               #define SIZEOF_CPUALIGNED_T 8
-       #elif CPU_CM3
-               typedef uint32_t cpu_aligned_stack_t;
-               #define SIZEOF_CPUALIGNED_T 4
-       #else
-               #error CPU configuration error
-       #endif
+       typedef uint64_t cpu_aligned_stack_t;
+       #define SIZEOF_CPUALIGNED_T 8
 
 #elif CPU_PPC