summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2017-07-31 11:52:50 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2017-07-31 11:52:50 +0000
commit8f69b27b1b6d724d46d0daac48155397e3db6933 (patch)
treea2fe40bf583dc115bc0348b329f188fb60a7e2f8 /sys
parentc262b3d1d64dd1e19e4a1b4ed090912842045b26 (diff)
Use unsigned long instead of uint32_t, which is the appropriate integer
type for storing pointers in our universe. Avoids an implicit dependence on <sys/types.h>. ok tom@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/arm/include/atomic.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/arm/include/atomic.h b/sys/arch/arm/include/atomic.h
index 56422780611..33b43833dfa 100644
--- a/sys/arch/arm/include/atomic.h
+++ b/sys/arch/arm/include/atomic.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: atomic.h,v 1.17 2017/05/12 08:53:46 mpi Exp $ */
+/* $OpenBSD: atomic.h,v 1.18 2017/07/31 11:52:49 kettenis Exp $ */
/* Public Domain */
@@ -45,7 +45,7 @@ static inline void *
_atomic_cas_ptr(volatile void *p, void *e, void *n)
{
void *ret;
- uint32_t modified;
+ unsigned long modified;
__asm volatile (
"1: ldrex %0, [%4] \n\t"
@@ -99,7 +99,7 @@ static inline void *
_atomic_swap_ptr(volatile void *p, void *v)
{
void *ret;
- uint32_t modified;
+ unsigned long modified;
__asm volatile (
"1: ldrex %0, [%3] \n\t"