1 #ifndef __ASM_STACKTRACE_H 2 #define __ASM_STACKTRACE_H 3 4 struct stackframe { 5 unsigned long fp; 6 unsigned long sp; 7 unsigned long lr; 8 unsigned long pc; 9 }; 10 11 struct metag_frame { 12 unsigned long fp; 13 unsigned long lr; 14 }; 15 16 extern int unwind_frame(struct stackframe *frame); 17 extern void walk_stackframe(struct stackframe *frame, 18 int (*fn)(struct stackframe *, void *), void *data); 19 20 #endif /* __ASM_STACKTRACE_H */ 21