fiq_debugger: arm: Fix compile error on !THREAD_INFO

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Id65e44276f7ee0ab0473274a2b739e0a6b453373
This commit is contained in:
Tao Huang
2024-04-01 19:02:37 +08:00
parent 7224760709
commit 416cd1ea3b

View File

@@ -238,12 +238,16 @@ void fiq_debugger_dump_stacktrace(struct fiq_debugger_output *output,
const struct pt_regs *regs, unsigned int depth, void *ssp)
{
struct frame_tail *tail;
#ifdef THREAD_INFO
struct thread_info *real_thread_info = THREAD_INFO(ssp);
#endif
struct stacktrace_state sts;
sts.depth = depth;
sts.output = output;
#ifdef THREAD_INFO
*current_thread_info() = *real_thread_info;
#endif
if (!current)
output->printf(output, "current NULL\n");