diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-11-01 11:16:51 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-11-01 11:16:51 -0600 |
commit | 1087c67c2acf53fbe1f549e89be6b70705b87792 (patch) | |
tree | 61f1d974a05187e9608eda2e79565654c03d308c /nuttx/arch/hc | |
parent | 9741311259ee5434987dc8c9918f29e355d22c4f (diff) | |
download | nuttx-1087c67c2acf53fbe1f549e89be6b70705b87792.tar.gz nuttx-1087c67c2acf53fbe1f549e89be6b70705b87792.tar.bz2 nuttx-1087c67c2acf53fbe1f549e89be6b70705b87792.zip |
Extend stack debug logic to include IDLE and interrupt stacks. Also color the heap as well. Based on suggestions from David Sidrane
Diffstat (limited to 'nuttx/arch/hc')
-rw-r--r-- | nuttx/arch/hc/src/common/up_internal.h | 2 | ||||
-rw-r--r-- | nuttx/arch/hc/src/m9s12/m9s12_assert.c | 4 | ||||
-rwxr-xr-x | nuttx/arch/hc/src/m9s12/m9s12_vectors.S | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/arch/hc/src/common/up_internal.h b/nuttx/arch/hc/src/common/up_internal.h index 44847107e..faf15c0e3 100644 --- a/nuttx/arch/hc/src/common/up_internal.h +++ b/nuttx/arch/hc/src/common/up_internal.h @@ -146,7 +146,7 @@ extern uint16_t g_idle_topstack; /* Address of the saved user stack pointer */ #if CONFIG_ARCH_INTERRUPTSTACK > 1 -extern uint32_t g_userstack; +extern uint32_t g_intstackbase; #endif /**************************************************************************** diff --git a/nuttx/arch/hc/src/m9s12/m9s12_assert.c b/nuttx/arch/hc/src/m9s12/m9s12_assert.c index 69d5e3c73..4a6292c3e 100644 --- a/nuttx/arch/hc/src/m9s12/m9s12_assert.c +++ b/nuttx/arch/hc/src/m9s12/m9s12_assert.c @@ -181,7 +181,7 @@ static void up_dumpstate(void) /* Get the limits on the interrupt stack memory */ #if CONFIG_ARCH_INTERRUPTSTACK > 3 - istackbase = (uint16_t)&g_userstack; + istackbase = (uint16_t)&g_intstackbase; istacksize = (CONFIG_ARCH_INTERRUPTSTACK & ~3) - 4; /* Show interrupt stack info */ @@ -205,7 +205,7 @@ static void up_dumpstate(void) * at the base of the interrupt stack. */ - sp = g_userstack; + sp = g_intstackbase; lldbg("sp: %04x\n", sp); } diff --git a/nuttx/arch/hc/src/m9s12/m9s12_vectors.S b/nuttx/arch/hc/src/m9s12/m9s12_vectors.S index dc57bf8b3..4b10ed62a 100755 --- a/nuttx/arch/hc/src/m9s12/m9s12_vectors.S +++ b/nuttx/arch/hc/src/m9s12/m9s12_vectors.S @@ -433,7 +433,7 @@ up_fullcontextrestore: .comm .Lspsave, 2, 1 /************************************************************************************ - * Name: up_interruptstack/g_userstack + * Name: up_interruptstack/g_intstackbase * * Description: * If CONFIG_ARCH_INTERRUPTSTACK is defined, this sets aside memory for the |