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/x86 | |
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/x86')
-rw-r--r-- | nuttx/arch/x86/src/common/up_assert.c | 4 | ||||
-rw-r--r-- | nuttx/arch/x86/src/common/up_internal.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/arch/x86/src/common/up_assert.c b/nuttx/arch/x86/src/common/up_assert.c index f9a36dc53..7db69d884 100644 --- a/nuttx/arch/x86/src/common/up_assert.c +++ b/nuttx/arch/x86/src/common/up_assert.c @@ -140,7 +140,7 @@ static void up_dumpstate(void) /* Get the limits on the interrupt stack memory */ #if CONFIG_ARCH_INTERRUPTSTACK > 3 - istackbase = (uint32_t)&g_userstack; + istackbase = (uint32_t)&g_intstackbase; istacksize = (CONFIG_ARCH_INTERRUPTSTACK & ~3) - 4; /* Show interrupt stack info */ @@ -164,7 +164,7 @@ static void up_dumpstate(void) * at the base of the interrupt stack. */ - sp = g_userstack; + sp = g_intstackbase; lldbg("sp: %08x\n", sp); } diff --git a/nuttx/arch/x86/src/common/up_internal.h b/nuttx/arch/x86/src/common/up_internal.h index 2e3ad33ea..173883280 100644 --- a/nuttx/arch/x86/src/common/up_internal.h +++ b/nuttx/arch/x86/src/common/up_internal.h @@ -145,7 +145,7 @@ extern uint32_t g_idle_topstack; /* Address of the saved user stack pointer */ #if CONFIG_ARCH_INTERRUPTSTACK > 3 -extern uint32_t g_userstack; +extern uint32_t g_intstackbase; #endif /* These 'addresses' of these values are setup by the linker script. They are |