diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-24 15:57:00 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-03-24 15:57:00 +0000 |
commit | acbb5c119d8be4b92a89c5b1fc195bb4c29a658c (patch) | |
tree | fcf539bb62b3fff6c55725b7afa72afd8260b9b1 | |
parent | 82623e0919811f68b804ea7793ade3250a0aeda1 (diff) | |
download | px4-nuttx-acbb5c119d8be4b92a89c5b1fc195bb4c29a658c.tar.gz px4-nuttx-acbb5c119d8be4b92a89c5b1fc195bb4c29a658c.tar.bz2 px4-nuttx-acbb5c119d8be4b92a89c5b1fc195bb4c29a658c.zip |
Eliminate warnings
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@142 42af7a65-404d-4744-a932-0658087f49c3
-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 |