mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-27 08:52:08 -04:00
A little extra commenting added to the Cortex M3 port layers.
This commit is contained in:
parent
3ff33205eb
commit
17e1e7dfd3
|
@ -55,14 +55,12 @@
|
||||||
.define "push.a", push_x
|
.define "push.a", push_x
|
||||||
.define "pop.a", pop_x
|
.define "pop.a", pop_x
|
||||||
.define "mov.a", mov_x
|
.define "mov.a", mov_x
|
||||||
.define "cmp.a", cmp_x
|
|
||||||
.else
|
.else
|
||||||
.define "pushm.w", pushm_x
|
.define "pushm.w", pushm_x
|
||||||
.define "popm.w", popm_x
|
.define "popm.w", popm_x
|
||||||
.define "push.w", push_x
|
.define "push.w", push_x
|
||||||
.define "pop.w", pop_x
|
.define "pop.w", pop_x
|
||||||
.define "mov.w", mov_x
|
.define "mov.w", mov_x
|
||||||
.define "cmp.w", cmp_x
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if $DEFINED( __LARGE_CODE_MODEL__ )
|
.if $DEFINED( __LARGE_CODE_MODEL__ )
|
||||||
|
|
|
@ -155,7 +155,7 @@ void vPortStartFirstTask( void )
|
||||||
" ldr r0, [r0] \n"
|
" ldr r0, [r0] \n"
|
||||||
" 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"
|
" cpsie i \n" /* Globally enable interrupts. */
|
||||||
" svc 0 \n" /* System call to start first task. */
|
" svc 0 \n" /* System call to start first task. */
|
||||||
" nop \n"
|
" nop \n"
|
||||||
);
|
);
|
||||||
|
|
|
@ -148,8 +148,9 @@ __asm void vPortStartFirstTask( void )
|
||||||
ldr r0, [r0]
|
ldr r0, [r0]
|
||||||
/* Set the msp back to the start of the stack. */
|
/* Set the msp back to the start of the stack. */
|
||||||
msr msp, r0
|
msr msp, r0
|
||||||
/* Call SVC to start the first task. */
|
/* Globally enable interrupts. */
|
||||||
cpsie i
|
cpsie i
|
||||||
|
/* Call SVC to start the first task. */
|
||||||
svc 0
|
svc 0
|
||||||
nop
|
nop
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue