diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-17 17:18:19 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-05-17 17:18:19 +0000 |
commit | 0fa834d4332608374852575437d2714f820868c4 (patch) | |
tree | 4e57188abe5ff32b2639ca69314fec94378bed8d /nuttx/arch/arm/src/common/up_doirq.c | |
parent | 0368c4fac2539f3a8812f9471e9be74fb7aeb303 (diff) | |
download | px4-nuttx-0fa834d4332608374852575437d2714f820868c4.tar.gz px4-nuttx-0fa834d4332608374852575437d2714f820868c4.tar.bz2 px4-nuttx-0fa834d4332608374852575437d2714f820868c4.zip |
Debug Cortex-M3 interrupts
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1787 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/common/up_doirq.c')
-rw-r--r-- | nuttx/arch/arm/src/common/up_doirq.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/common/up_doirq.c b/nuttx/arch/arm/src/common/up_doirq.c index b863ec0c5..861f5f3d8 100644 --- a/nuttx/arch/arm/src/common/up_doirq.c +++ b/nuttx/arch/arm/src/common/up_doirq.c @@ -66,7 +66,11 @@ * Public Functions ****************************************************************************/ -uint32 *up_doirq(int irq, uint32* regs) +#ifdef __thumb2__ +uint32 *up_doirq(int irq, uint32 *regs) +#else +void up_doirq(int irq, uint32 *regs) +#endif { up_ledon(LED_INIRQ); #ifdef CONFIG_SUPPRESS_INTERRUPTS @@ -94,8 +98,9 @@ uint32 *up_doirq(int irq, uint32* regs) * of context switching for te particular chip. */ +#ifdef __thumb2__ regs = current_regs; - +#endif /* Indicate that we are no long in an interrupt handler */ current_regs = NULL; @@ -108,5 +113,7 @@ uint32 *up_doirq(int irq, uint32* regs) } up_ledoff(LED_INIRQ); #endif +#ifdef __thumb2__ return regs; +#endif } |