]> git.sur5r.net Git - freertos/commitdiff
Convert mov instructions to movs instructions in the GCC Cortex-M0 port.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 11 Mar 2012 21:28:06 +0000 (21:28 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 11 Mar 2012 21:28:06 +0000 (21:28 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1694 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/portable/GCC/ARM_CM0/port.c

index 85232dfe5ce3a811200951b7fa17f33285551fe3..4ecbf2db3dae314a51a498a81f5ef8b2307b26fd 100644 (file)
@@ -135,7 +135,7 @@ void vPortSVCHandler( void )
                                        "       sub r0, r0, #32                                 \n" /* Go back for the low registers that are not automatically restored. */\r
                                        "       ldmia r0!, {r4-r7}              \n" /* Pop low registers.  */\r
                                        "       mov r1, r14                                             \n" /* OR R14 with 0x0d. */\r
-                                       "       mov r0, #0x0d                                   \n"\r
+                                       "       movs r0, #0x0d                                  \n"\r
                                        "       orr r1, r0                                              \n"\r
                                        "       bx r1                                                   \n"\r
                                        "                                                                       \n"\r
@@ -148,7 +148,7 @@ void vPortSVCHandler( void )
 void vPortStartFirstTask( void )\r
 {\r
        __asm volatile(\r
-                                       " mov r0, #0x00         \n" /* Locate the top of stack. */\r
+                                       " movs r0, #0x00        \n" /* Locate the top of stack. */\r
                                        " ldr r0, [r0]          \n"\r
                                        " msr msp, r0           \n" /* Set the msp back to the start of the stack. */\r
                                        " cpsie i                       \n" /* Globally enable interrupts. */\r