Commit 0115f679 authored by Wu Liliu's avatar Wu Liliu Committed by guzitao
Browse files

sw64: reimplement show_stack() method

Sunway inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5GFQ0



--------------------------------

It used to show stack information by SP, that means it has nothing to
do with task, which is unexpected. In order to show stack of task, we
improve the implementation of show_stack().

However, the original task struct does not have sp, so we add it into
thread_struct and do something necessary in __switch_to.

Meanwhile, walk_stackframe() can be reused, so refactor related codes
for better support.

Signed-off-by: default avatarWu Liliu <wuliliu@wxiat.com>

Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent 9e0b719c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment