summaryrefslogtreecommitdiffstats
path: root/include/printk.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/printk.h')
-rw-r--r--include/printk.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/printk.h b/include/printk.h
index 0915efbadd..baf2cca202 100644
--- a/include/printk.h
+++ b/include/printk.h
@@ -47,4 +47,14 @@ extern void print_hex_dump(const char *level, const char *prefix_str,
int prefix_type, int rowsize, int groupsize,
const void *buf, size_t len, bool ascii);
+#ifdef CONFIG_ARCH_HAS_STACK_DUMP
+void dump_stack(void);
+#else
+static inline void dump_stack(void)
+{
+ printf("no stack data available\n");
+}
+#endif
+
+
#endif