Remove clrex instruction from Cortex-M ports again as it is implicit in interrupt entry.

This commit is contained in:
Richard Barry 2016-06-28 10:39:25 +00:00
parent c296e2cff8
commit bdbf347c22
14 changed files with 0 additions and 25 deletions

View File

@ -123,9 +123,6 @@ xPortPendSVHandler: .asmfunc
;/* Save the new top of stack into the first member of the TCB. */
str r0, [r2]
;/* Ensure thread safety of atomic operations. */
clrex
stmdb sp!, {r3}
ldr r0, ulMaxSyscallInterruptPriorityConst
ldr r1, [r0]

View File

@ -410,7 +410,6 @@ void xPortPendSVHandler( void )
" \n"
" stmdb r0!, {r4-r11} \n" /* Save the remaining registers. */
" str r0, [r2] \n" /* Save the new top of stack into the first member of the TCB. */
" clrex \n" /* Ensure thread safety of atomic operations. */
" \n"
" stmdb sp!, {r3, r14} \n"
" mov r0, %0 \n"

View File

@ -450,7 +450,6 @@ void xPortPendSVHandler( void )
" mrs r1, control \n"
" stmdb r0!, {r1, r4-r11} \n" /* Save the remaining registers. */
" str r0, [r2] \n" /* Save the new top of stack into the first member of the TCB. */
" clrex \n" /* Ensure thread safety of atomic operations. */
" \n"
" stmdb sp!, {r3, r14} \n"
" mov r0, %0 \n"

View File

@ -450,7 +450,6 @@ void xPortPendSVHandler( void )
" \n"
" stmdb r0!, {r4-r11, r14} \n" /* Save the core registers. */
" str r0, [r2] \n" /* Save the new top of stack into the first member of the TCB. */
" clrex \n" /* Ensure thread safety of atomic operations. */
" \n"
" stmdb sp!, {r3} \n"
" mov r0, %0 \n"

View File

@ -477,7 +477,6 @@ void xPortPendSVHandler( void )
" mrs r1, control \n"
" stmdb r0!, {r1, r4-r11, r14} \n" /* Save the remaining registers. */
" str r0, [r2] \n" /* Save the new top of stack into the first member of the TCB. */
" clrex \n" /* Ensure thread safety of atomic operations. */
" \n"
" stmdb sp!, {r3} \n"
" mov r0, %0 \n"

View File

@ -438,7 +438,6 @@ void xPortPendSVHandler( void )
" \n"
" stmdb r0!, {r4-r11, r14} \n" /* Save the core registers. */
" str r0, [r2] \n" /* Save the new top of stack into the first member of the TCB. */
" clrex \n" /* Ensure thread safety of atomic operations. */
" \n"
" stmdb sp!, {r3} \n"
" mov r0, %0 \n"

View File

@ -91,7 +91,6 @@ xPortPendSVHandler:
stmdb r0!, {r4-r11} /* Save the remaining registers. */
str r0, [r2] /* Save the new top of stack into the first member of the TCB. */
clrex /* Ensure thread safety of atomic operations. */
stmdb sp!, {r3, r14}
mov r0, #configMAX_SYSCALL_INTERRUPT_PRIORITY

View File

@ -101,9 +101,6 @@ xPortPendSVHandler:
/* Save the new top of stack into the first member of the TCB. */
str r0, [r2]
/* Ensure thread safety of atomic operations. */
clrex
stmdb sp!, {r3}
mov r0, #configMAX_SYSCALL_INTERRUPT_PRIORITY
msr basepri, r0

View File

@ -101,9 +101,6 @@ xPortPendSVHandler:
/* Save the new top of stack into the first member of the TCB. */
str r0, [r2]
/* Ensure thread safety of atomic operations. */
clrex
stmdb sp!, {r3}
mov r0, #configMAX_SYSCALL_INTERRUPT_PRIORITY
cpsid i

View File

@ -458,8 +458,6 @@ void xPortPendSVHandler( void ) iv IVT_INT_PendSV ics ICS_OFF
str r0, [r2] /* Save the new top of stack into the first member of the TCB. */
clrex /* Ensure thread safety of atomic operations. */
stmdb sp!, (r3)
ldr r0, =_ucMaxSyscallInterruptPriority
ldr r1, [r0]

View File

@ -407,7 +407,6 @@ __asm void xPortPendSVHandler( void )
stmdb r0!, {r4-r11} /* Save the remaining registers. */
str r0, [r2] /* Save the new top of stack into the first member of the TCB. */
clrex /* Ensure thread safety of atomic operations. */
stmdb sp!, {r3, r14}
mov r0, #configMAX_SYSCALL_INTERRUPT_PRIORITY

View File

@ -479,9 +479,6 @@ __asm void xPortPendSVHandler( void )
/* Save the new top of stack into the first member of the TCB. */
str r0, [r2]
/* Ensure thread safety of atomic operations. */
clrex
stmdb sp!, {r3}
mov r0, #configMAX_SYSCALL_INTERRUPT_PRIORITY
msr basepri, r0

View File

@ -492,7 +492,6 @@ __asm void xPortPendSVHandler( void )
mrs r1, control
stmdb r0!, {r1, r4-r11, r14} /* Save the remaining registers. */
str r0, [r2] /* Save the new top of stack into the first member of the TCB. */
clrex /* Ensure thread safety of atomic operations. */
stmdb sp!, {r3}
mov r0, #configMAX_SYSCALL_INTERRUPT_PRIORITY

View File

@ -463,9 +463,6 @@ __asm void xPortPendSVHandler( void )
/* Save the new top of stack into the first member of the TCB. */
str r0, [r2]
/* Ensure thread safety of atomic operations. */
clrex
stmdb sp!, {r3}
mov r0, #configMAX_SYSCALL_INTERRUPT_PRIORITY
cpsid i