summaryrefslogtreecommitdiff
path: root/nuttx/arch/sh/src/m16c/m16c_dumpstate.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/sh/src/m16c/m16c_dumpstate.c')
-rw-r--r--nuttx/arch/sh/src/m16c/m16c_dumpstate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/arch/sh/src/m16c/m16c_dumpstate.c b/nuttx/arch/sh/src/m16c/m16c_dumpstate.c
index 3570a9ebe..8083f62bd 100644
--- a/nuttx/arch/sh/src/m16c/m16c_dumpstate.c
+++ b/nuttx/arch/sh/src/m16c/m16c_dumpstate.c
@@ -171,7 +171,7 @@ void up_dumpstate(void)
if (rtcb->pid == 0)
{
- ustackbase = g_heapbase - 1;
+ ustackbase = g_idle_topstack - 1;
ustacksize = CONFIG_IDLETHREAD_STACKSIZE;
}
else