debug: fail to show active cpu stacks [1/1]
authorJiamin Ma <jiamin.ma@amlogic.com>
Tue, 19 Feb 2019 10:19:27 +0000 (18:19 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Fri, 22 Feb 2019 02:33:00 +0000 (18:33 -0800)
commite67659deac47fb2d4d27a7d4869bef8b9e363e08
tree4e91f6258b86fab86cf5475c945c9a04c53ceb8b
parent7c4855385cfaba678568da6df059c1d69ea8779a
debug: fail to show active cpu stacks [1/1]

PD#SWPL-4718

Problem:
Will have "PC=0, LR=0" issue when try to
show active cpu stacks via sysrq

Solution:
Save the addr of current interrupted task's context to the
interrupt stack first, so that we can easily obtain pt_regs
later

Verify:
Locally on Ampere

Change-Id: I1cc5095e0ec356bed90f76cdf9af1b2617ce7834
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
arch/arm/kernel/entry-armv.S
arch/arm/kernel/unwind.c
drivers/amlogic/memory_ext/vmap_stack.c
include/linux/amlogic/vmap_stack.h