aboutsummaryrefslogtreecommitdiff
path: root/arch/metag/include
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2012-10-05 17:01:38 +0100
committerJames Hogan <james.hogan@imgtec.com>2013-03-02 20:09:52 +0000
commite8de3486a4b06389d4f996eb2dda678a39f20115 (patch)
tree2a72c3bf3394335fb638cb27ae187919387c94f1 /arch/metag/include
parent086e9dc0e2ca925b1b58caefd04ed2757d14790b (diff)
metag: Stack unwinding
Add stack unwinding support for metag. Signed-off-by: James Hogan <james.hogan@imgtec.com>
Diffstat (limited to 'arch/metag/include')
-rw-r--r--arch/metag/include/asm/stacktrace.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/metag/include/asm/stacktrace.h b/arch/metag/include/asm/stacktrace.h
new file mode 100644
index 00000000000..2830a0fe7ac
--- /dev/null
+++ b/arch/metag/include/asm/stacktrace.h
@@ -0,0 +1,20 @@
+#ifndef __ASM_STACKTRACE_H
+#define __ASM_STACKTRACE_H
+
+struct stackframe {
+ unsigned long fp;
+ unsigned long sp;
+ unsigned long lr;
+ unsigned long pc;
+};
+
+struct metag_frame {
+ unsigned long fp;
+ unsigned long lr;
+};
+
+extern int unwind_frame(struct stackframe *frame);
+extern void walk_stackframe(struct stackframe *frame,
+ int (*fn)(struct stackframe *, void *), void *data);
+
+#endif /* __ASM_STACKTRACE_H */