Kefeng Wang
091b945085
riscv: Add dump stack in show_regs
...
Like commit 1149aad10b ("arm64: Add dump_backtrace() in show_regs"),
dump the stack in riscv show_regs as common code expects.
Reviewed-by: Atish Patra <atish.patra@wdc.com >
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com >
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com >
2021-01-14 15:09:11 -08:00
Kefeng Wang
9dd97064e2
riscv: Make stack walk callback consistent with generic code
...
In order to use generic arch_stack_walk() code, make stack walk
callback consistent with it.
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com >
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com >
2020-11-20 18:53:38 -08:00
Kefeng Wang
99c168fccb
riscv: Cleanup stacktrace
...
1. add asm/stacktrace.h for walk_stackframe and struct stackframe
2. remove unnecessary blank lines in stacktrace.c
3. fix warning "no previous prototype for ‘fill_callchain’"
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com >
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com >
2020-11-20 18:53:31 -08:00