Convert mov instructions to movs instructions in the GCC Cortex-M0 port.

This commit is contained in:
Richard Barry 2012-03-11 21:28:06 +00:00
parent 7fa9bf25dc
commit b86d821bc1

View file

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