summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/stacktrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/kernel/stacktrace.h')
-rw-r--r--arch/arm/kernel/stacktrace.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/arm/kernel/stacktrace.h b/arch/arm/kernel/stacktrace.h
new file mode 100644
index 000000000000..e9fd20cb5662
--- /dev/null
+++ b/arch/arm/kernel/stacktrace.h
@@ -0,0 +1,9 @@
+struct stackframe {
+ unsigned long fp;
+ unsigned long sp;
+ unsigned long lr;
+ unsigned long pc;
+};
+
+int walk_stackframe(unsigned long fp, unsigned long low, unsigned long high,
+ int (*fn)(struct stackframe *, void *), void *data);