diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-10-07 23:05:56 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-10-07 23:05:56 +0000 |
commit | a400800e4eeed352d826144b71e8ded19d519950 (patch) | |
tree | 64320d595264ac64ebafb4a22ff192241d15e94c /nuttx/arch | |
parent | 4079a1f2e089d2004edfd9fab139aab75d4cb93e (diff) | |
download | px4-nuttx-a400800e4eeed352d826144b71e8ded19d519950.tar.gz px4-nuttx-a400800e4eeed352d826144b71e8ded19d519950.tar.bz2 px4-nuttx-a400800e4eeed352d826144b71e8ded19d519950.zip |
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
Diffstat (limited to 'nuttx/arch')
-rw-r--r-- | nuttx/arch/arm/src/common/up_assert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/common/up_assert.c b/nuttx/arch/arm/src/common/up_assert.c index 1790225c2..ac6906c70 100644 --- a/nuttx/arch/arm/src/common/up_assert.c +++ b/nuttx/arch/arm/src/common/up_assert.c @@ -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"); |