diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-27 21:17:21 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-27 21:17:21 +0000 |
commit | 148cde5e982950ad5836fa96baa466de842e1c14 (patch) | |
tree | bf737b367b91c5da81345eb21016b07400d7a72f /nuttx/sched/irq_dispatch.c | |
parent | f6b81a790c28d7d36d9de33810df5270c1ebbfd7 (diff) | |
download | px4-nuttx-148cde5e982950ad5836fa96baa466de842e1c14.tar.gz px4-nuttx-148cde5e982950ad5836fa96baa466de842e1c14.tar.bz2 px4-nuttx-148cde5e982950ad5836fa96baa466de842e1c14.zip |
Finally, a clean SDCC compile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@20 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/irq_dispatch.c')
-rw-r--r-- | nuttx/sched/irq_dispatch.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nuttx/sched/irq_dispatch.c b/nuttx/sched/irq_dispatch.c index d6466cbc0..1dc388a40 100644 --- a/nuttx/sched/irq_dispatch.c +++ b/nuttx/sched/irq_dispatch.c @@ -76,12 +76,13 @@ * ***********************************************************/ -void irq_dispatch(int irq, void *context) +void irq_dispatch(int irq, FAR void *context) { xcpt_t vector; /* Perform some sanity checks */ +#if NR_IRQS > 0 if ((unsigned)irq >= NR_IRQS || g_irqvector[irq] == NULL) { vector = irq_unexpected_isr; @@ -90,6 +91,9 @@ void irq_dispatch(int irq, void *context) { vector = g_irqvector[irq]; } +#else + vector = irq_unexpected_isr; +#endif /* Then dispatch to the interrupt handler */ |