fiq_debugger_arm64: Fix running bt command causes Oops panic

Setting frame.prev_type to STACK_TYPE_UNKNOWN to solve it.
prev_type is new for struct stackframe of linux5.10 arm64.

Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: I6df1d6b860a79f4e15e3ce40f6471aa1de02f986
This commit is contained in:
Huibin Hong
2021-11-02 06:38:37 +00:00
committed by Tao Huang
parent 83c37e606b
commit a91e489eea

View File

@@ -191,6 +191,7 @@ void fiq_debugger_dump_stacktrace(struct fiq_debugger_output *output,
struct stackframe frame;
frame.fp = regs->regs[29];
frame.pc = regs->pc;
frame.prev_type = STACK_TYPE_UNKNOWN;
output->printf(output, "\n");
walk_stackframe(current, &frame, report_trace, &sts);
}