Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jan 2013 04:36:40 +0000 (UTC)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r245322 - projects/altix2/sys/ia64/sgisn
Message-ID:  <201301120436.r0C4aecl086382@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marcel
Date: Sat Jan 12 04:36:40 2013
New Revision: 245322
URL: http://svnweb.freebsd.org/changeset/base/245322

Log:
  Put x in parenthesis fo safe macro expansion.

Modified:
  projects/altix2/sys/ia64/sgisn/sgisn_pcib.h

Modified: projects/altix2/sys/ia64/sgisn/sgisn_pcib.h
==============================================================================
--- projects/altix2/sys/ia64/sgisn/sgisn_pcib.h	Sat Jan 12 00:59:41 2013	(r245321)
+++ projects/altix2/sys/ia64/sgisn/sgisn_pcib.h	Sat Jan 12 04:36:40 2013	(r245322)
@@ -63,17 +63,17 @@
 #define	PIC_REG_INT_MODE	0x00118
 #define	PIC_REG_INT_DEVICE	0x00120
 #define	PIC_REG_INT_HOSTERR	0x00128
-#define	PIC_REG_INT_ADDR(x)	(0x00130 + (x << 3))
+#define	PIC_REG_INT_ADDR(x)	(0x00130 + ((x) << 3))
 #define	PIC_REG_INT_ERRVIEW	0x00170
 #define	PIC_REG_INT_MULTI	0x00178
-#define	PIC_REG_INT_FORCE(x)	(0x00180 + (x << 3))
-#define	PIC_REG_INT_PIN(x)	(0x001c0 + (x << 3))
+#define	PIC_REG_INT_FORCE(x)	(0x00180 + ((x) << 3))
+#define	PIC_REG_INT_PIN(x)	(0x001c0 + ((x) << 3))
 
-#define	PIC_REG_DEVICE(x)	(0x00200 + (x << 3))
-#define	PIC_REG_WR_REQ(x)	(0x00240 + (x << 3))
-#define	PIC_REG_RRB_MAP(x)	(0x00280 + (x << 3))
+#define	PIC_REG_DEVICE(x)	(0x00200 + ((x) << 3))
+#define	PIC_REG_WR_REQ(x)	(0x00240 + ((x) << 3))
+#define	PIC_REG_RRB_MAP(x)	(0x00280 + ((x) << 3))
 
-#define	PIC_REG_ATE(x)		(0x10000 + (x << 3))
+#define	PIC_REG_ATE(x)		(0x10000 + ((x) << 3))
 #define	PIC_REG_ATE_SIZE	1024
 
 struct sgisn_fwpcib {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201301120436.r0C4aecl086382>