1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2022 Loongson Technology Corporation Limited
5 #include <asm/unwind.h>
7 unsigned long unwind_get_return_address(struct unwind_state *state)
9 return __unwind_get_return_address(state);
11 EXPORT_SYMBOL_GPL(unwind_get_return_address);
13 void unwind_start(struct unwind_state *state, struct task_struct *task,
16 __unwind_start(state, task, regs);
17 if (!unwind_done(state) && !__kernel_text_address(state->pc))
18 unwind_next_frame(state);
20 EXPORT_SYMBOL_GPL(unwind_start);
22 bool unwind_next_frame(struct unwind_state *state)
24 return default_next_frame(state);
26 EXPORT_SYMBOL_GPL(unwind_next_frame);