diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-09 12:53:12 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-07-09 12:53:12 +0000 |
commit | 9098b66d35067e38533c23f429386816f42943de (patch) | |
tree | 465ecfb945562f3996cca598d5aa6c86b1aaf71e /nuttx/arch/arm/src/common/up_internal.h | |
parent | 48994413b1ca9833ec6061ba257dda813ea121dd (diff) | |
download | nuttx-9098b66d35067e38533c23f429386816f42943de.tar.gz nuttx-9098b66d35067e38533c23f429386816f42943de.tar.bz2 nuttx-9098b66d35067e38533c23f429386816f42943de.zip |
ARM stack check logic; ARM no-console build fixes; Nucleus-2G updates
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3760 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/common/up_internal.h')
-rw-r--r-- | nuttx/arch/arm/src/common/up_internal.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/common/up_internal.h b/nuttx/arch/arm/src/common/up_internal.h index 803a6563d..0d9f1560f 100644 --- a/nuttx/arch/arm/src/common/up_internal.h +++ b/nuttx/arch/arm/src/common/up_internal.h @@ -41,6 +41,7 @@ ****************************************************************************/ #ifndef __ASSEMBLY__ +# include <sys/types.h> # include <stdint.h> #endif @@ -280,6 +281,29 @@ extern void up_usbuninitialize(void); # define up_usbuninitialize() #endif +/**************************************************************************** + * Name: up_check_stack + * + * Description: + * Determine (approximately) how much stack has been used be searching the + * stack memory for a high water mark. That is, the deepest level of the + * stack that clobbered some recognizable marker in the stack memory. + * + * Input Parameters: + * None + * + * Returned value: + * The estimated amount of stack space used. + * + ****************************************************************************/ + + +#if defined(CONFIG_DEBUG) && defined(CONFIG_DEBUG_STACK) +extern size_t up_check_stack(void); +extern size_t up_check_tcbstack(FAR _TCB); +extern size_t up_check_tcbstack_remain(FAR _TCB); +#endif + #endif /* __ASSEMBLY__ */ #endif /* __UP_INTERNAL_H */ |