From 784937a03c01259e44ee9051605156604552f0a4 Mon Sep 17 00:00:00 2001 From: ligd Date: Thu, 14 Mar 2024 23:08:42 +0800 Subject: [PATCH] arm64: fix backtrace failed Signed-off-by: ligd --- arch/arm64/src/common/arm64_backtrace.c | 5 ----- arch/arm64/src/common/arm64_vectors.S | 15 --------------- 2 files changed, 20 deletions(-) diff --git a/arch/arm64/src/common/arm64_backtrace.c b/arch/arm64/src/common/arm64_backtrace.c index e3cfe0d8cb..35d5e88b78 100644 --- a/arch/arm64/src/common/arm64_backtrace.c +++ b/arch/arm64/src/common/arm64_backtrace.c @@ -119,11 +119,6 @@ int up_backtrace(struct tcb_s *tcb, struct regs_context * p_regs; int ret; - if (rtcb == NULL) - { - rtcb = running_task(); - } - if (size <= 0 || !buffer) { return 0; diff --git a/arch/arm64/src/common/arm64_vectors.S b/arch/arm64/src/common/arm64_vectors.S index 0c0605ca72..c606e71e88 100644 --- a/arch/arm64/src/common/arm64_vectors.S +++ b/arch/arm64/src/common/arm64_vectors.S @@ -37,19 +37,6 @@ .file "arm64_vectors.S" -/**************************************************************************** - * Assembly Macros - ****************************************************************************/ - -.macro arm64_exception_context_save xreg0, xreg1 xfp - - /* Save the current task's SP_EL0 and exception depth */ - mrs \xreg0, sp_el0 - mrs \xreg1, tpidrro_el0 - stp \xreg0, \xreg1, [\xfp, #8 * REG_SP_EL0] - -.endm - /**************************************************************************** * Public Functions ****************************************************************************/ @@ -95,8 +82,6 @@ SECTION_FUNC(text, up_saveusercontext) #endif stp x4, x5, [x0, #8 * REG_ELR] - arm64_exception_context_save x4 x5 x0 - ret /****************************************************************************