1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/arch/unicore32/include/asm/stacktrace.h
5 * Code specific to PKUnity SoC and UniCore ISA
7 * Copyright (C) 2001-2010 GUAN Xue-tao
10 #ifndef __UNICORE_STACKTRACE_H__
11 #define __UNICORE_STACKTRACE_H__
20 #ifdef CONFIG_FRAME_POINTER
21 extern int unwind_frame(struct stackframe
*frame
);
23 #define unwind_frame(f) (-EINVAL)
25 extern void walk_stackframe(struct stackframe
*frame
,
26 int (*fn
)(struct stackframe
*, void *), void *data
);
28 #endif /* __UNICORE_STACKTRACE_H__ */