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/c15480f8d15e
branches: trunk
changeset: 350656:c15480f8d15e
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 cc904600e4fe -r c15480f8d15e 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