Path: blob/master/arch/unicore32/include/asm/stacktrace.h
10818 views
/*1* linux/arch/unicore32/include/asm/stacktrace.h2*3* Code specific to PKUnity SoC and UniCore ISA4*5* Copyright (C) 2001-2010 GUAN Xue-tao6*7* This program is free software; you can redistribute it and/or modify8* it under the terms of the GNU General Public License version 2 as9* published by the Free Software Foundation.10*/1112#ifndef __UNICORE_STACKTRACE_H__13#define __UNICORE_STACKTRACE_H__1415struct stackframe {16unsigned long fp;17unsigned long sp;18unsigned long lr;19unsigned long pc;20};2122#ifdef CONFIG_FRAME_POINTER23extern int unwind_frame(struct stackframe *frame);24#else25#define unwind_frame(f) (-EINVAL)26#endif27extern void walk_stackframe(struct stackframe *frame,28int (*fn)(struct stackframe *, void *), void *data);2930#endif /* __UNICORE_STACKTRACE_H__ */313233