diff options
-rw-r--r-- | nuttx/arch/dm320/src/up_exit.c | 7 | ||||
-rw-r--r-- | nuttx/arch/dm320/src/up_timerisr.c | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/nuttx/arch/dm320/src/up_exit.c b/nuttx/arch/dm320/src/up_exit.c index b96d5f824..e51180dc6 100644 --- a/nuttx/arch/dm320/src/up_exit.c +++ b/nuttx/arch/dm320/src/up_exit.c @@ -128,7 +128,12 @@ static void _up_dumponexit(FAR _TCB *tcb, FAR void *arg) void _exit(int status) { _TCB* tcb = (_TCB*)g_readytorun.head; - irqstate_t flags = irqsave(); + + /* Disable interrupts. They will be restored when the next + * task is started. + */ + + (void)irqsave(); lldbg("TCB=%p exitting\n", tcb); diff --git a/nuttx/arch/dm320/src/up_timerisr.c b/nuttx/arch/dm320/src/up_timerisr.c index cfb472f25..4666caa80 100644 --- a/nuttx/arch/dm320/src/up_timerisr.c +++ b/nuttx/arch/dm320/src/up_timerisr.c @@ -132,8 +132,6 @@ int up_timerisr(int irq, uint32 *regs) void up_timerinit(void) { - uint32 val; - up_disable_irq(DM320_IRQ_SYSTIMER); /* Start timer0 running so that an interrupt is generated at |