Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hppa/include more types for constants



details:   https://anonhg.NetBSD.org/src/rev/742219736be4
branches:  trunk
changeset: 820798:742219736be4
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 15 15:27:41 2017 +0000

description:
more types for constants

diffstat:

 sys/arch/hppa/include/lock.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r dc4e5d49a816 -r 742219736be4 sys/arch/hppa/include/lock.h
--- a/sys/arch/hppa/include/lock.h      Sun Jan 15 15:20:15 2017 +0000
+++ b/sys/arch/hppa/include/lock.h      Sun Jan 15 15:27:41 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lock.h,v 1.17 2017/01/14 15:58:11 christos Exp $       */
+/*     $NetBSD: lock.h,v 1.18 2017/01/15 15:27:41 christos Exp $       */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -39,10 +39,10 @@
 
 #include <sys/stdint.h>
 
-#define HPPA_LDCW_ALIGN        16
+#define HPPA_LDCW_ALIGN        16UL
 
 #define __SIMPLELOCK_ALIGN(p) \
-    (volatile unsigned long *)(((uintptr_t)(p) + HPPA_LDCW_ALIGN - 1) & \
+    (volatile unsigned long *)(((uintptr_t)((p) + HPPA_LDCW_ALIGN - 1)) & \
     ~(HPPA_LDCW_ALIGN - 1))
 
 #define __SIMPLELOCK_RAW_LOCKED                0UL



Home | Main Index | Thread Index | Old Index