summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2010-06-18 21:24:17 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2010-06-18 21:24:17 +0000
commit637c18e438d7e887de41d88c9bedd31a6dc0999e (patch)
treebff67033bd9b9f3068536f082d0110d7fca275a3 /sys/powerpc
parentd2c78cca9b6c90d9b7aee1d348a2b7f9b02d2520 (diff)
downloadFreeBSD-src-637c18e438d7e887de41d88c9bedd31a6dc0999e.zip
FreeBSD-src-637c18e438d7e887de41d88c9bedd31a6dc0999e.tar.gz
Missed commit in r209310: the IRQ number in INTR_VEC() should have
parantheses around it to allow arithmetic expressions to be passed. Submitted by: Andreas Tobler
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/include/intr_machdep.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/include/intr_machdep.h b/sys/powerpc/include/intr_machdep.h
index 6267055..96f9acc 100644
--- a/sys/powerpc/include/intr_machdep.h
+++ b/sys/powerpc/include/intr_machdep.h
@@ -35,7 +35,7 @@
#define INTR_INTLINE(irq) (irq & ((1 << IGN_SHIFT) - 1))
#define INTR_IGN(irq) (irq >> IGN_SHIFT)
-#define INTR_VEC(pic_id, irq) ((powerpc_ign_lookup(pic_id) << IGN_SHIFT) | irq)
+#define INTR_VEC(pic_id, irq) ((powerpc_ign_lookup(pic_id) << IGN_SHIFT) | (irq))
/*
* Default base address for MSI messages on PowerPC
OpenPOWER on IntegriCloud