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
/* 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
/* 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