Module Name: src Committed By: christos Date: Sun Jan 15 15:27:41 UTC 2017
Modified Files: src/sys/arch/hppa/include: lock.h Log Message: more types for constants To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/sys/arch/hppa/include/lock.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/hppa/include/lock.h diff -u src/sys/arch/hppa/include/lock.h:1.17 src/sys/arch/hppa/include/lock.h:1.18 --- src/sys/arch/hppa/include/lock.h:1.17 Sat Jan 14 10:58:11 2017 +++ src/sys/arch/hppa/include/lock.h Sun Jan 15 10:27:41 2017 @@ -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