]> git.sur5r.net Git - freertos/commitdiff
Set ARM byte alignment to 8.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 29 Sep 2009 20:01:17 +0000 (20:01 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Tue, 29 Sep 2009 20:01:17 +0000 (20:01 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@879 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/portable/RVDS/ARM7_LPC21xx/port.c
Source/portable/RVDS/ARM7_LPC21xx/portmacro.h
Source/portable/RVDS/ARM_CM3/portmacro.h

index 8b6d462ec5eace1d9315c8c5538196d02436f774..500cee1a84913b665671a29921f8ca8c7fe0c154 100644 (file)
@@ -153,12 +153,11 @@ portSTACK_TYPE *pxOriginalTOS;
        system mode, with interrupts enabled. */\r
        *pxTopOfStack = ( portSTACK_TYPE ) portINITIAL_SPSR;\r
 \r
-       #ifdef KEIL_THUMB_INTERWORK\r
-       {               \r
+       if( ( ( unsigned long ) pxCode & 0x01UL ) != 0x00UL )\r
+       {\r
                /* We want the task to start in thumb mode. */\r
                *pxTopOfStack |= portTHUMB_MODE_BIT;\r
        }\r
-       #endif\r
 \r
        pxTopOfStack--;\r
 \r
index e978bcb8fbc7f92a390c74db29c7972bf1f4f774..4b2b0f9e0fd1b9e54bf47c39d922eff13d882129 100644 (file)
@@ -84,7 +84,7 @@ extern "C" {
 /* Hardware specifics. */\r
 #define portSTACK_GROWTH                       ( -1 )\r
 #define portTICK_RATE_MS                       ( ( portTickType ) 1000 / configTICK_RATE_HZ )          \r
-#define portBYTE_ALIGNMENT                     4\r
+#define portBYTE_ALIGNMENT                     8\r
 /*-----------------------------------------------------------*/        \r
 \r
 /* Task utilities. */\r
index a8010ed07e297eb673072a54104a3860cf14ed11..c0dd2609881872d59a6885340f561c15887fe918 100644 (file)
@@ -84,7 +84,7 @@ extern "C" {
 /* Architecture specifics. */\r
 #define portSTACK_GROWTH                       ( -1 )\r
 #define portTICK_RATE_MS                       ( ( portTickType ) 1000 / configTICK_RATE_HZ )          \r
-#define portBYTE_ALIGNMENT                     4\r
+#define portBYTE_ALIGNMENT                     8\r
 /*-----------------------------------------------------------*/        \r
 \r
 \r