From fbf9b2675d96852c61fca17ff0d91efe9cbfa13d Mon Sep 17 00:00:00 2001 From: Carlo Caione Date: Tue, 18 Feb 2020 09:28:44 +0100 Subject: [PATCH] aarch64: swap: Remove redundant code Delete redundant / useless code from z_arm64_pendsv(). Signed-off-by: Carlo Caione --- arch/arm/core/aarch64/swap_helper.S | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm/core/aarch64/swap_helper.S b/arch/arm/core/aarch64/swap_helper.S index 28140f7db87..6c6e3b9239b 100644 --- a/arch/arm/core/aarch64/swap_helper.S +++ b/arch/arm/core/aarch64/swap_helper.S @@ -85,10 +85,6 @@ SECTION_FUNC(TEXT, z_arm64_pendsv) ldr x2, [x1, #_kernel_offset_to_ready_q_cache] str x2, [x1, #_kernel_offset_to_current] - /* load _kernel into x1 and current k_thread into x2 */ - ldr x1, =_kernel - ldr x2, [x1, #_kernel_offset_to_current] - /* addr of callee-saved regs in thread in x0 */ ldr x0, =_thread_offset_to_callee_saved add x0, x0, x2