Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/dev sprinkle ()s in macros



details:   https://anonhg.NetBSD.org/src/rev/4b02f9d594bc
branches:  trunk
changeset: 815107:4b02f9d594bc
user:      macallan <macallan%NetBSD.org@localhost>
date:      Sat Apr 30 05:22:19 2016 +0000

description:
sprinkle ()s in macros

diffstat:

 sys/arch/sparc/dev/sxreg.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 5a6fca7cec61 -r 4b02f9d594bc sys/arch/sparc/dev/sxreg.h
--- a/sys/arch/sparc/dev/sxreg.h        Fri Apr 29 18:29:17 2016 +0000
+++ b/sys/arch/sparc/dev/sxreg.h        Sat Apr 30 05:22:19 2016 +0000
@@ -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



Home | Main Index | Thread Index | Old Index