summaryrefslogtreecommitdiffstats
path: root/sys/arm
diff options
context:
space:
mode:
authorraj <raj@FreeBSD.org>2008-03-12 15:46:25 +0000
committerraj <raj@FreeBSD.org>2008-03-12 15:46:25 +0000
commit38de1d907f06aa673bd1ff440c25dc22450689e9 (patch)
treef5a6593233791fd537ac2d4c0ae73cf415b92847 /sys/arm
parentd574f1c4f5d83b7ccaaec79fbbfd8e01d5091b52 (diff)
downloadFreeBSD-src-38de1d907f06aa673bd1ff440c25dc22450689e9.zip
FreeBSD-src-38de1d907f06aa673bd1ff440c25dc22450689e9.tar.gz
Respect RF_SHAREABLE flag in ARM nexus_setup_intr()
Reviewed by: imp Approved by: cognet (mentor)
Diffstat (limited to 'sys/arm')
-rw-r--r--sys/arm/arm/nexus.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/arm/arm/nexus.c b/sys/arm/arm/nexus.c
index 0d9c388..0be9ec1 100644
--- a/sys/arm/arm/nexus.c
+++ b/sys/arm/arm/nexus.c
@@ -129,6 +129,9 @@ nexus_setup_intr(device_t dev, device_t child, struct resource *res, int flags,
{
int i;
+ if ((rman_get_flags(res) & RF_SHAREABLE) == 0)
+ flags |= INTR_EXCL;
+
for (i = rman_get_start(res); i <= rman_get_end(res); i++)
arm_setup_irqhandler(device_get_nameunit(child),
filt, intr, arg, i, flags, cookiep);
OpenPOWER on IntegriCloud