summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/lm3s/lm3s_irq.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/arch/arm/src/lm3s/lm3s_irq.c')
-rw-r--r--nuttx/arch/arm/src/lm3s/lm3s_irq.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/nuttx/arch/arm/src/lm3s/lm3s_irq.c b/nuttx/arch/arm/src/lm3s/lm3s_irq.c
index 04110e3cf..4b3c404e0 100644
--- a/nuttx/arch/arm/src/lm3s/lm3s_irq.c
+++ b/nuttx/arch/arm/src/lm3s/lm3s_irq.c
@@ -173,6 +173,12 @@ void up_irqinitialize(void)
current_regs = NULL;
+ /* Attach the PendSV exception handler. This is used for performing
+ * context switches.
+ */
+
+ irq_attach(LMSB_IRQ_PENDSV, lm3s_pendsv);
+
/* Attach all processor exceptions (except reset and sys tick) */
#ifdef CONFIG_DEBUG
@@ -183,7 +189,6 @@ void up_irqinitialize(void)
irq_attach(LMSB_IRQ_USAGEFAULT, lm3s_usagefault);
irq_attach(LMSB_IRQ_SVCALL, lm3s_svcall);
irq_attach(LMSB_IRQ_DBGMONITOR, lm3s_dbgmonitor);
- irq_attach(LMSB_IRQ_PENDSV, lm3s_pendsv);
irq_attach(LMSB_IRQ_RESERVED, lm3s_reserved);
#endif
@@ -368,14 +373,6 @@ int lm3s_dbgmonitor(int irq, FAR void *context)
return 0;
}
-int lm3s_pendsv(int irq, FAR void *context)
-{
- (void)irqsave();
- dbg("PANIC!!! PendSV received\n");
- PANIC(OSERR_UNEXPECTEDISR);
- return 0;
-}
-
int lm3s_reserved(int irq, FAR void *context)
{
(void)irqsave();