FILE
unwind_guess.c
File preview with syntax highlighting.
linux-6.19.14/arch/loongarch/kernel/unwind_guess.c
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2022 Loongson Technology Corporation Limited 4 */ 5#include <asm/unwind.h> 6#include <linux/export.h> 7 8unsigned long unwind_get_return_address(struct unwind_state *state) 9{ 10 return __unwind_get_return_address(state); 11} 12EXPORT_SYMBOL_GPL(unwind_get_return_address); 13 14void unwind_start(struct unwind_state *state, struct task_struct *task, 15 struct pt_regs *regs) 16{ 17 __unwind_start(state, task, regs); 18 if (!unwind_done(state) && !__kernel_text_address(state->pc)) 19 unwind_next_frame(state); 20} 21EXPORT_SYMBOL_GPL(unwind_start); 22 23bool unwind_next_frame(struct unwind_state *state) 24{ 25 return default_next_frame(state); 26} 27EXPORT_SYMBOL_GPL(unwind_next_frame);
~/
Read-only file preview.