svn commit: r209316 - head/sys/powerpc/include

Nathan Whitehorn nwhitehorn at FreeBSD.org
Fri Jun 18 21:24:17 UTC 2010


Author: nwhitehorn
Date: Fri Jun 18 21:24:17 2010
New Revision: 209316
URL: http://svn.freebsd.org/changeset/base/209316

Log:
  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

Modified:
  head/sys/powerpc/include/intr_machdep.h

Modified: head/sys/powerpc/include/intr_machdep.h
==============================================================================
--- head/sys/powerpc/include/intr_machdep.h	Fri Jun 18 21:10:56 2010	(r209315)
+++ head/sys/powerpc/include/intr_machdep.h	Fri Jun 18 21:24:17 2010	(r209316)
@@ -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


More information about the svn-src-head mailing list