diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-07-31 11:52:50 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-07-31 11:52:50 +0000 |
commit | 8f69b27b1b6d724d46d0daac48155397e3db6933 (patch) | |
tree | a2fe40bf583dc115bc0348b329f188fb60a7e2f8 /sys | |
parent | c262b3d1d64dd1e19e4a1b4ed090912842045b26 (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.h | 6 |
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" |