Module Name: src Committed By: macallan Date: Sat Apr 30 05:22:19 UTC 2016
Modified Files: src/sys/arch/sparc/dev: sxreg.h Log Message: sprinkle ()s in macros To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/sys/arch/sparc/dev/sxreg.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/sparc/dev/sxreg.h diff -u src/sys/arch/sparc/dev/sxreg.h:1.11 src/sys/arch/sparc/dev/sxreg.h:1.12 --- src/sys/arch/sparc/dev/sxreg.h:1.11 Wed Jun 19 00:41:16 2013 +++ src/sys/arch/sparc/dev/sxreg.h Sat Apr 30 05:22:19 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: sxreg.h,v 1.11 2013/06/19 00:41:16 macallan Exp $ */ +/* $NetBSD: sxreg.h,v 1.12 2016/04/30 05:22:19 macallan Exp $ */ /*- * Copyright (c) 2013 The NetBSD Foundation, Inc. @@ -53,7 +53,7 @@ /* write registers via pseudo instructions */ #define SX_QUEUED_R0 0x00000300 #define SX_QUEUED_R1 0x00000304 /* and so on until R127 */ -#define SX_QUEUED(r) (0x300 + (r << 2)) +#define SX_QUEUED(r) (0x300 + ((r) << 2)) /* special purpose registers */ #define R_ZERO 0