From 55c2b73af69096c27f5344c5c7e2fb94d824c1cf Mon Sep 17 00:00:00 2001 From: Ioannis Glaropoulos Date: Mon, 11 Feb 2019 10:04:15 +0100 Subject: [PATCH] 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 --- arch/arm/core/swap_helper.S | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/core/swap_helper.S b/arch/arm/core/swap_helper.S index 9ce4813b121..db57535d5aa 100644 --- a/arch/arm/core/swap_helper.S +++ b/arch/arm/core/swap_helper.S @@ -233,7 +233,6 @@ _thread_irq_disabled: #endif /* CONFIG_BUILTIN_STACK_GUARD */ #ifdef CONFIG_EXECUTION_BENCHMARKING - stm sp!,{r0-r3} /* Save regs r0 to r3 on stack */ push {r0, lr} bl read_timer_end_of_swap #if defined(CONFIG_ARMV6_M_ARMV8_M_BASELINE) @@ -242,7 +241,6 @@ _thread_irq_disabled: #else pop {r0, lr} #endif /* CONFIG_ARMV6_M_ARMV8_M_BASELINE */ - ldm sp!,{r0-r3} /* Load back regs r0 to r3 */ #endif /* CONFIG_EXECUTION_BENCHMARKING */