diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-05-20 04:35:14 -0400 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2009-06-12 20:45:48 +0200 |
commit | ecb1dc892297d5d99876907328fed732feefeab2 (patch) | |
tree | 60f14fd9310612bb4ee23d819d9f8fad859beda7 /include | |
parent | 36c9169aa6f79ddf604a3bca64e145654f94888b (diff) | |
download | u-boot-imx-ecb1dc892297d5d99876907328fed732feefeab2.zip u-boot-imx-ecb1dc892297d5d99876907328fed732feefeab2.tar.gz u-boot-imx-ecb1dc892297d5d99876907328fed732feefeab2.tar.bz2 |
Add support for Linux-like kallsysms
The kernel stores address<->symbol names in it so things can be decoded at
runtime. Do it in U-Boot, and we get nice symbol decoding when crashing.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/common.h | 3 | ||||
-rw-r--r-- | include/configs/bfin_adi_common.h | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/common.h b/include/common.h index 30fff7d..df0f5a0 100644 --- a/include/common.h +++ b/include/common.h @@ -300,6 +300,9 @@ int misc_init_r (void); /* common/exports.c */ void jumptable_init(void); +/* common/kallsysm.c */ +const char *symbol_lookup(unsigned long addr, unsigned long *caddr); + /* api/api.c */ void api_init (void); diff --git a/include/configs/bfin_adi_common.h b/include/configs/bfin_adi_common.h index bfe5376..e0be07b 100644 --- a/include/configs/bfin_adi_common.h +++ b/include/configs/bfin_adi_common.h @@ -91,7 +91,7 @@ */ #define CONFIG_ENV_OVERWRITE 1 #define CONFIG_DEBUG_DUMP 1 -#define CONFIG_DEBUG_DUMP_SYMS 1 +#define CONFIG_KALLSYMS 1 #define CONFIG_PANIC_HANG 1 /* |