summaryrefslogtreecommitdiffstats
path: root/sys/arm/at91/at91.c
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2009-06-09 18:18:41 +0000
committermarcel <marcel@FreeBSD.org>2009-06-09 18:18:41 +0000
commit898dda825cfcffcc2b924756406dffce9cf7e252 (patch)
treee846e3361c689dff739f93bdcff26f51b315917d /sys/arm/at91/at91.c
parent6550c66aa23e544ae0721ff433e77661cc5c4098 (diff)
downloadFreeBSD-src-898dda825cfcffcc2b924756406dffce9cf7e252.zip
FreeBSD-src-898dda825cfcffcc2b924756406dffce9cf7e252.tar.gz
Pass the previously returned IRQ back to arm_get_next_irq() so that
the implementation can guarantee forward progress in the event of a stuck interrupt or interrupt storm. This is especially critical for fast interrupt handlers, as they can cause a hard hang in that case. When first called, arm_get_next_irq() is passed -1. Obtained from: Juniper Networks, Inc.
Diffstat (limited to 'sys/arm/at91/at91.c')
-rw-r--r--sys/arm/at91/at91.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/arm/at91/at91.c b/sys/arm/at91/at91.c
index 222fce0..efc731b 100644
--- a/sys/arm/at91/at91.c
+++ b/sys/arm/at91/at91.c
@@ -702,9 +702,8 @@ arm_mask_irq(uintptr_t nb)
}
int
-arm_get_next_irq()
+arm_get_next_irq(int last __unused)
{
-
int status;
int irq;
OpenPOWER on IntegriCloud