From 879ae884b04ba97b656f0c0aff1b90aea92aa4b7 Mon Sep 17 00:00:00 2001 From: Jiamin Ma Date: Thu, 31 Jan 2019 16:41:15 +0800 Subject: [PATCH] debug: fail to show active cpu stacks [1/1] PD#SWPL-4718 Problem: The task stack address is not saved to irq_stack_ptr-0x08, so when switching from irq stack to task stack, we can not obtain the right task stack address Solution: save task stack address to irq_stack_ptr-0x08 Verify: Locally on Ampere Change-Id: I8ad9a45cee33681cc00de3a0bb264dbd9f1b859f Signed-off-by: Jiamin Ma --- arch/arm64/kernel/entry.S | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm64/kernel/entry.S b/arch/arm64/kernel/entry.S index 8c07515..dc3f26d 100644 --- a/arch/arm64/kernel/entry.S +++ b/arch/arm64/kernel/entry.S @@ -329,10 +329,8 @@ alternative_insn eret, nop, ARM64_UNMAP_KERNEL_AT_EL0 * Add a dummy stack frame, this non-standard format is fixed up * by unwind_frame() */ -#ifndef CONFIG_AMLOGIC_VMAP /* we need get right stack of el1_preempt */ stp x29, x19, [sp, #-16]! mov x29, sp -#endif /* !CONFIG_AMLOGIC_VMAP */ 9998: .endm -- 2.7.4