summaryrefslogtreecommitdiff
path: root/nuttx/arch/dm320
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-24 15:57:00 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-24 15:57:00 +0000
commitacbb5c119d8be4b92a89c5b1fc195bb4c29a658c (patch)
treefcf539bb62b3fff6c55725b7afa72afd8260b9b1 /nuttx/arch/dm320
parent82623e0919811f68b804ea7793ade3250a0aeda1 (diff)
downloadpx4-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
Diffstat (limited to 'nuttx/arch/dm320')
-rw-r--r--nuttx/arch/dm320/src/up_exit.c7
-rw-r--r--nuttx/arch/dm320/src/up_timerisr.c2
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