arch: arm: remove unnecessary stacking/unstacking
Due to code re-organization inside __pendSV(), the stacking and unstacking of scratch registers around the invocation of read_timer_end_of_swap() is no longer required. Signed-off-by: Ioannis Glaropoulos <Ioannis.Glaropoulos@nordicsemi.no>
This commit is contained in:
parent
dd25e59762
commit
55c2b73af6
1 changed files with 0 additions and 2 deletions
|
@ -233,7 +233,6 @@ _thread_irq_disabled:
|
||||||
#endif /* CONFIG_BUILTIN_STACK_GUARD */
|
#endif /* CONFIG_BUILTIN_STACK_GUARD */
|
||||||
|
|
||||||
#ifdef CONFIG_EXECUTION_BENCHMARKING
|
#ifdef CONFIG_EXECUTION_BENCHMARKING
|
||||||
stm sp!,{r0-r3} /* Save regs r0 to r3 on stack */
|
|
||||||
push {r0, lr}
|
push {r0, lr}
|
||||||
bl read_timer_end_of_swap
|
bl read_timer_end_of_swap
|
||||||
#if defined(CONFIG_ARMV6_M_ARMV8_M_BASELINE)
|
#if defined(CONFIG_ARMV6_M_ARMV8_M_BASELINE)
|
||||||
|
@ -242,7 +241,6 @@ _thread_irq_disabled:
|
||||||
#else
|
#else
|
||||||
pop {r0, lr}
|
pop {r0, lr}
|
||||||
#endif /* CONFIG_ARMV6_M_ARMV8_M_BASELINE */
|
#endif /* CONFIG_ARMV6_M_ARMV8_M_BASELINE */
|
||||||
ldm sp!,{r0-r3} /* Load back regs r0 to r3 */
|
|
||||||
|
|
||||||
#endif /* CONFIG_EXECUTION_BENCHMARKING */
|
#endif /* CONFIG_EXECUTION_BENCHMARKING */
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue