mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-13 01:27:48 -04:00
Fix ASM style
Fix ASM style
This commit is contained in:
parent
6374066414
commit
429eae4eeb
2 changed files with 14 additions and 14 deletions
|
@ -247,7 +247,7 @@ __asm void vPortSVCHandler( void )
|
||||||
ldr r1, [ r3 ]
|
ldr r1, [ r3 ]
|
||||||
ldr r0, [ r1 ]
|
ldr r0, [ r1 ]
|
||||||
/* Pop the core registers. */
|
/* Pop the core registers. */
|
||||||
ldmia r0 !, { r4 - r11, r14 }
|
ldmia r0!, {r4-r11,r14}
|
||||||
msr psp, r0
|
msr psp, r0
|
||||||
isb
|
isb
|
||||||
mov r0, #0
|
mov r0, #0
|
||||||
|
@ -468,15 +468,15 @@ __asm void xPortPendSVHandler( void )
|
||||||
/* Is the task using the FPU context? If so, push high vfp registers. */
|
/* Is the task using the FPU context? If so, push high vfp registers. */
|
||||||
tst r14, #0x10
|
tst r14, #0x10
|
||||||
it eq
|
it eq
|
||||||
vstmdbeq r0 !, { s16 - s31 }
|
vstmdbeq r0!, {s16-s31}
|
||||||
|
|
||||||
/* Save the core registers. */
|
/* Save the core registers. */
|
||||||
stmdb r0 !, { r4 - r11, r14 }
|
stmdb r0!, {r4-r11, r14}
|
||||||
|
|
||||||
/* Save the new top of stack into the first member of the TCB. */
|
/* Save the new top of stack into the first member of the TCB. */
|
||||||
str r0, [ r2 ]
|
str r0, [ r2 ]
|
||||||
|
|
||||||
stmdb sp !, { r0, r3 }
|
stmdb sp!, {r0, r3}
|
||||||
mov r0, #configMAX_SYSCALL_INTERRUPT_PRIORITY
|
mov r0, #configMAX_SYSCALL_INTERRUPT_PRIORITY
|
||||||
msr basepri, r0
|
msr basepri, r0
|
||||||
dsb
|
dsb
|
||||||
|
@ -484,20 +484,20 @@ __asm void xPortPendSVHandler( void )
|
||||||
bl vTaskSwitchContext
|
bl vTaskSwitchContext
|
||||||
mov r0, #0
|
mov r0, #0
|
||||||
msr basepri, r0
|
msr basepri, r0
|
||||||
ldmia sp !, { r0, r3 }
|
ldmia sp!, {r0, r3}
|
||||||
|
|
||||||
/* The first item in pxCurrentTCB is the task top of stack. */
|
/* The first item in pxCurrentTCB is the task top of stack. */
|
||||||
ldr r1, [ r3 ]
|
ldr r1, [ r3 ]
|
||||||
ldr r0, [ r1 ]
|
ldr r0, [ r1 ]
|
||||||
|
|
||||||
/* Pop the core registers. */
|
/* Pop the core registers. */
|
||||||
ldmia r0 !, { r4 - r11, r14 }
|
ldmia r0!, {r4-r11, r14}
|
||||||
|
|
||||||
/* Is the task using the FPU context? If so, pop the high vfp registers
|
/* Is the task using the FPU context? If so, pop the high vfp registers
|
||||||
* too. */
|
* too. */
|
||||||
tst r14, #0x10
|
tst r14, #0x10
|
||||||
it eq
|
it eq
|
||||||
vldmiaeq r0 !, { s16 - s31 }
|
vldmiaeq r0!, {s16-s31}
|
||||||
|
|
||||||
msr psp, r0
|
msr psp, r0
|
||||||
isb
|
isb
|
||||||
|
|
|
@ -241,7 +241,7 @@ __asm void vPortSVCHandler( void )
|
||||||
ldr r1, [ r3 ]
|
ldr r1, [ r3 ]
|
||||||
ldr r0, [ r1 ]
|
ldr r0, [ r1 ]
|
||||||
/* Pop the core registers. */
|
/* Pop the core registers. */
|
||||||
ldmia r0 !, { r4 - r11, r14 }
|
ldmia r0!, { r4-r11, r14 }
|
||||||
msr psp, r0
|
msr psp, r0
|
||||||
isb
|
isb
|
||||||
mov r0, #0
|
mov r0, #0
|
||||||
|
@ -452,15 +452,15 @@ __asm void xPortPendSVHandler( void )
|
||||||
/* Is the task using the FPU context? If so, push high vfp registers. */
|
/* Is the task using the FPU context? If so, push high vfp registers. */
|
||||||
tst r14, #0x10
|
tst r14, #0x10
|
||||||
it eq
|
it eq
|
||||||
vstmdbeq r0 !, { s16 - s31 }
|
vstmdbeq r0!, {s16-s31}
|
||||||
|
|
||||||
/* Save the core registers. */
|
/* Save the core registers. */
|
||||||
stmdb r0 !, { r4 - r11, r14 }
|
stmdb r0!, {r4-r11, r14 }
|
||||||
|
|
||||||
/* Save the new top of stack into the first member of the TCB. */
|
/* Save the new top of stack into the first member of the TCB. */
|
||||||
str r0, [ r2 ]
|
str r0, [ r2 ]
|
||||||
|
|
||||||
stmdb sp !, { r0, r3 }
|
stmdb sp!, { r0, r3 }
|
||||||
mov r0, #configMAX_SYSCALL_INTERRUPT_PRIORITY
|
mov r0, #configMAX_SYSCALL_INTERRUPT_PRIORITY
|
||||||
cpsid i
|
cpsid i
|
||||||
msr basepri, r0
|
msr basepri, r0
|
||||||
|
@ -470,20 +470,20 @@ __asm void xPortPendSVHandler( void )
|
||||||
bl vTaskSwitchContext
|
bl vTaskSwitchContext
|
||||||
mov r0, #0
|
mov r0, #0
|
||||||
msr basepri, r0
|
msr basepri, r0
|
||||||
ldmia sp !, { r0, r3 }
|
ldmia sp!, { r0, r3 }
|
||||||
|
|
||||||
/* The first item in pxCurrentTCB is the task top of stack. */
|
/* The first item in pxCurrentTCB is the task top of stack. */
|
||||||
ldr r1, [ r3 ]
|
ldr r1, [ r3 ]
|
||||||
ldr r0, [ r1 ]
|
ldr r0, [ r1 ]
|
||||||
|
|
||||||
/* Pop the core registers. */
|
/* Pop the core registers. */
|
||||||
ldmia r0 !, { r4 - r11, r14 }
|
ldmia r0!, { r4-r11, r14 }
|
||||||
|
|
||||||
/* Is the task using the FPU context? If so, pop the high vfp registers
|
/* Is the task using the FPU context? If so, pop the high vfp registers
|
||||||
* too. */
|
* too. */
|
||||||
tst r14, #0x10
|
tst r14, #0x10
|
||||||
it eq
|
it eq
|
||||||
vldmiaeq r0 !, { s16 - s31 }
|
vldmiaeq r0!, { s16-s31 }
|
||||||
|
|
||||||
msr psp, r0
|
msr psp, r0
|
||||||
isb
|
isb
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue