A little extra commenting added to the Cortex M3 port layers.

This commit is contained in:
Richard Barry 2011-01-05 13:36:35 +00:00
parent 3ff33205eb
commit 17e1e7dfd3
3 changed files with 3 additions and 4 deletions

View File

@ -55,14 +55,12 @@
.define "push.a", push_x
.define "pop.a", pop_x
.define "mov.a", mov_x
.define "cmp.a", cmp_x
.else
.define "pushm.w", pushm_x
.define "popm.w", popm_x
.define "push.w", push_x
.define "pop.w", pop_x
.define "mov.w", mov_x
.define "cmp.w", cmp_x
.endif
.if $DEFINED( __LARGE_CODE_MODEL__ )

View File

@ -155,7 +155,7 @@ void vPortStartFirstTask( void )
" ldr r0, [r0] \n"
" ldr r0, [r0] \n"
" msr msp, r0 \n" /* Set the msp back to the start of the stack. */
" cpsie i \n"
" cpsie i \n" /* Globally enable interrupts. */
" svc 0 \n" /* System call to start first task. */
" nop \n"
);

View File

@ -148,8 +148,9 @@ __asm void vPortStartFirstTask( void )
ldr r0, [r0]
/* Set the msp back to the start of the stack. */
msr msp, r0
/* Call SVC to start the first task. */
/* Globally enable interrupts. */
cpsie i
/* Call SVC to start the first task. */
svc 0
nop
}