Added a _nop() after the _disable_interrupt() in CCS4/MSP430X/portmacro.h.
Added a NOP() after the disabling of interrupts in IAR/MSP430X/portmacro.h.
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1690
1d2547de-c912-0410-9cb9-
b8ca96c0e9e2
/*-----------------------------------------------------------*/ \r
\r
/* Interrupt control macros. */\r
-#define portDISABLE_INTERRUPTS() _disable_interrupt()\r
+#define portDISABLE_INTERRUPTS() _disable_interrupt(); _nop()\r
#define portENABLE_INTERRUPTS() _enable_interrupt()\r
/*-----------------------------------------------------------*/\r
\r
/*\r
FreeRTOS V7.1.0 - Copyright (C) 2011 Real Time Engineers Ltd.\r
- \r
+\r
\r
***************************************************************************\r
* *\r
/*\r
* Start first task is a separate function so it can be tested in isolation.\r
*/\r
-void vPortStartFirstTask( void ) __attribute__ (( naked ));\r
+static void prvPortStartFirstTask( void ) __attribute__ (( naked ));\r
\r
/*-----------------------------------------------------------*/\r
\r
}\r
/*-----------------------------------------------------------*/\r
\r
-void vPortStartFirstTask( void )\r
+static void prvPortStartFirstTask( void )\r
{\r
__asm volatile(\r
" ldr r0, =0xE000ED08 \n" /* Use the NVIC offset register to locate the stack. */\r
uxCriticalNesting = 0;\r
\r
/* Start the first task. */\r
- vPortStartFirstTask();\r
+ prvPortStartFirstTask();\r
\r
/* Should not get here! */\r
return 0;\r
licensing and training services.\r
*/\r
\r
-/*\r
- Change from V4.2.1:\r
-\r
- + Introduced usage of configKERNEL_INTERRUPT_PRIORITY macro to set the\r
- interrupt priority used by the kernel.\r
-*/\r
-\r
/*-----------------------------------------------------------\r
* Implementation of functions defined in portable.h for the ARM CM3 port.\r
*----------------------------------------------------------*/\r
/*-----------------------------------------------------------*/ \r
\r
/* Interrupt control macros. */\r
-#define portDISABLE_INTERRUPTS() _DINT()\r
+#define portDISABLE_INTERRUPTS() _DINT();_NOP()\r
#define portENABLE_INTERRUPTS() _EINT()\r
/*-----------------------------------------------------------*/\r
\r