From: richardbarry Date: Sun, 11 Mar 2012 21:28:06 +0000 (+0000) Subject: Convert mov instructions to movs instructions in the GCC Cortex-M0 port. X-Git-Tag: V7.1.1~52 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5aea97d406d0bbe7695129f51c76c23e751663ac;p=freertos Convert mov instructions to movs instructions in the GCC Cortex-M0 port. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@1694 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/portable/GCC/ARM_CM0/port.c b/Source/portable/GCC/ARM_CM0/port.c index 85232dfe5..4ecbf2db3 100644 --- a/Source/portable/GCC/ARM_CM0/port.c +++ b/Source/portable/GCC/ARM_CM0/port.c @@ -135,7 +135,7 @@ void vPortSVCHandler( void ) " sub r0, r0, #32 \n" /* Go back for the low registers that are not automatically restored. */ " ldmia r0!, {r4-r7} \n" /* Pop low registers. */ " mov r1, r14 \n" /* OR R14 with 0x0d. */ - " mov r0, #0x0d \n" + " movs r0, #0x0d \n" " orr r1, r0 \n" " bx r1 \n" " \n" @@ -148,7 +148,7 @@ void vPortSVCHandler( void ) void vPortStartFirstTask( void ) { __asm volatile( - " mov r0, #0x00 \n" /* Locate the top of stack. */ + " movs r0, #0x00 \n" /* Locate the top of stack. */ " ldr r0, [r0] \n" " msr msp, r0 \n" /* Set the msp back to the start of the stack. */ " cpsie i \n" /* Globally enable interrupts. */