arm64: fix backtrace failed
Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
parent
f172f222be
commit
784937a03c
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
||||
/****************************************************************************
|
||||
|
|
Loading…
Reference in New Issue