diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2015-01-24 06:49:51 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2015-01-24 06:49:51 -0600 |
commit | 0b34d78f7f3cf30969bdf12ad24f64aaa2dd28e0 (patch) | |
tree | 6c121a2ca991c45b2f33b0ae190da802c5b0cce3 /nuttx/arch/z16 | |
parent | 7b8e6ff54398eab1bc9f205ca7e9719228ef4526 (diff) | |
download | px4-nuttx-0b34d78f7f3cf30969bdf12ad24f64aaa2dd28e0.tar.gz px4-nuttx-0b34d78f7f3cf30969bdf12ad24f64aaa2dd28e0.tar.bz2 px4-nuttx-0b34d78f7f3cf30969bdf12ad24f64aaa2dd28e0.zip |
Remove CONFIG_DEBUG_STACK. Adding CONFIG_STACK_COLORATION makes this configuration option pointless
Diffstat (limited to 'nuttx/arch/z16')
-rw-r--r-- | nuttx/arch/z16/src/common/up_createstack.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/nuttx/arch/z16/src/common/up_createstack.c b/nuttx/arch/z16/src/common/up_createstack.c index 42df4d0c2..493078580 100644 --- a/nuttx/arch/z16/src/common/up_createstack.c +++ b/nuttx/arch/z16/src/common/up_createstack.c @@ -117,11 +117,7 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) * then create a zeroed stack to make stack dumps easier to trace. */ -#if defined(CONFIG_DEBUG) && !defined(CONFIG_DEBUG_STACK) - tcb->stack_alloc_ptr = (uint32_t *)kumm_zalloc(stack_size); -#else tcb->stack_alloc_ptr = (uint32_t *)kumm_malloc(stack_size); -#endif #ifdef CONFIG_DEBUG /* Was the allocation successful? */ @@ -145,7 +141,7 @@ int up_create_stack(FAR struct tcb_s *tcb, size_t stack_size, uint8_t ttype) * water marks. */ -#if defined(CONFIG_DEBUG) && defined(CONFIG_DEBUG_STACK) +#ifdef CONFIG_STACK_COLORATION memset(tcb->stack_alloc_ptr, 0xaa, stack_size); #endif |