Skip to content
Snippets Groups Projects
Commit caa14237 authored by patacongo's avatar patacongo
Browse files

Fix tests for SP in interrupt stack range

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@994 42af7a65-404d-4744-a932-0658087f49c3
parent 9b6911e9
No related branches found
No related tags found
No related merge requests found
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment