diff options
author | Robin Getz <robin.getz@analog.com> | 2009-12-21 16:35:48 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-01-17 20:36:09 -0500 |
commit | f19fd87e9387282b5abbfdafe46ac272320643d8 (patch) | |
tree | 853df8844855d7025a271f01abb45eb4d1c24fa1 /include/asm-blackfin/config.h | |
parent | 3869453f659c22396fecb7c8ed7af909e89f461c (diff) | |
download | u-boot-imx-f19fd87e9387282b5abbfdafe46ac272320643d8.zip u-boot-imx-f19fd87e9387282b5abbfdafe46ac272320643d8.tar.gz u-boot-imx-f19fd87e9387282b5abbfdafe46ac272320643d8.tar.bz2 |
Blackfin: add support for kgdb
Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/asm-blackfin/config.h')
-rw-r--r-- | include/asm-blackfin/config.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/asm-blackfin/config.h b/include/asm-blackfin/config.h index 0ae838a..7455685 100644 --- a/include/asm-blackfin/config.h +++ b/include/asm-blackfin/config.h @@ -66,6 +66,11 @@ # error CONFIG_PLL_BYPASS: Invalid value: must be 0 or 1 #endif +/* If we are using KGDB, make sure we defer exceptions */ +#ifdef CONFIG_CMD_KGDB +# define CONFIG_EXCEPTION_DEFER 1 +#endif + /* Using L1 scratch pad makes sense for everyone by default. */ #ifndef CONFIG_LINUX_CMDLINE_ADDR # define CONFIG_LINUX_CMDLINE_ADDR L1_SRAM_SCRATCH @@ -138,6 +143,8 @@ #endif #ifndef CONFIG_SYS_CBSIZE # define CONFIG_SYS_CBSIZE 1024 +#elif defined(CONFIG_CMD_KGDB) && CONFIG_SYS_CBSIZE < 1024 +# error "kgdb needs cbsize to be >= 1024" #endif #ifndef CONFIG_SYS_BARGSIZE # define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE |