aboutsummaryrefslogtreecommitdiff
path: root/include/skiboot.h
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-11-18 19:33:51 +1100
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-11-18 19:33:51 +1100
commitc38c2e8d08e03e905b72334747a9f8795f3526c2 (patch)
tree94a7e5ec6124998eee1d1a27577370b03304c4e6 /include/skiboot.h
parent94796c825b0708c8c86e7135d60c435fc3fd00a5 (diff)
downloadskiboot-c38c2e8d08e03e905b72334747a9f8795f3526c2.zip
skiboot-c38c2e8d08e03e905b72334747a9f8795f3526c2.tar.gz
skiboot-c38c2e8d08e03e905b72334747a9f8795f3526c2.tar.bz2
Add symbolic backtraces and expose skiboot map to Linux
We use a double link technique, doing a first pass with a .o containing a dummy symbol map, then re-linking with a new .o Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/skiboot.h')
-rw-r--r--include/skiboot.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/skiboot.h b/include/skiboot.h
index 8750c70..79aece6 100644
--- a/include/skiboot.h
+++ b/include/skiboot.h
@@ -171,6 +171,12 @@ extern struct dt_node *dt_root;
/* Generated git id. */
extern const char gitid[];
+/* Debug support */
+extern char __sym_map_start[];
+extern char __sym_map_end[];
+extern unsigned long get_symbol(unsigned long addr,
+ char **sym, char **sym_end);
+
/* Fast reboot support */
extern void fast_reset(void);
extern void __secondary_cpu_entry(void);