Fix tests for SP in interrupt stack range
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@994 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
parent
4528914fb4
commit
d697c6855f
|
@ -185,7 +185,7 @@ static void up_dumpstate(void)
|
|||
* stack?
|
||||
*/
|
||||
|
||||
if (sp <= istackbase && sp < istackbase - istacksize)
|
||||
if (sp <= istackbase && sp > istackbase - istacksize)
|
||||
{
|
||||
/* Yes.. dump the interrupt stack */
|
||||
|
||||
|
@ -214,7 +214,7 @@ static void up_dumpstate(void)
|
|||
* stack memory.
|
||||
*/
|
||||
|
||||
if (sp >= ustackbase || sp < ustackbase - ustacksize)
|
||||
if (sp > ustackbase || sp <= ustackbase - ustacksize)
|
||||
{
|
||||
#if !defined(CONFIG_ARCH_INTERRUPTSTACK) || CONFIG_ARCH_INTERRUPTSTACK < 4
|
||||
lldbg("ERROR: Stack pointer is not within allocated stack\n");
|
||||
|
|
Loading…
Reference in New Issue