diff options
author | imp <imp@FreeBSD.org> | 2008-09-18 19:57:06 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2008-09-18 19:57:06 +0000 |
commit | bc77825d81a610cbb049962db71391d86094e6b6 (patch) | |
tree | a44ebc99f371717589a1225b63709186e96948b8 /sys/cddl | |
parent | 6538abe8bec19d49b0eb66e62e3ace707cecff35 (diff) | |
download | FreeBSD-src-bc77825d81a610cbb049962db71391d86094e6b6.zip FreeBSD-src-bc77825d81a610cbb049962db71391d86094e6b6.tar.gz |
Mips needs the same treatment for atomic_or_8 as the other RISCy
architectures.
Diffstat (limited to 'sys/cddl')
-rw-r--r-- | sys/cddl/compat/opensolaris/kern/opensolaris_atomic.c | 3 | ||||
-rw-r--r-- | sys/cddl/compat/opensolaris/sys/atomic.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/cddl/compat/opensolaris/kern/opensolaris_atomic.c b/sys/cddl/compat/opensolaris/kern/opensolaris_atomic.c index fb6ef2e..37de21f 100644 --- a/sys/cddl/compat/opensolaris/kern/opensolaris_atomic.c +++ b/sys/cddl/compat/opensolaris/kern/opensolaris_atomic.c @@ -74,7 +74,8 @@ atomic_add_64_nv(volatile uint64_t *target, int64_t delta) return (newval); } -#if defined(__sparc64__) || defined(__powerpc__) || defined(__arm__) +#if defined(__sparc64__) || defined(__powerpc__) || defined(__arm__) || \ + defined(__mips__) void atomic_or_8(volatile uint8_t *target, uint8_t value) { diff --git a/sys/cddl/compat/opensolaris/sys/atomic.h b/sys/cddl/compat/opensolaris/sys/atomic.h index 17aa097..46752a5 100644 --- a/sys/cddl/compat/opensolaris/sys/atomic.h +++ b/sys/cddl/compat/opensolaris/sys/atomic.h @@ -48,7 +48,8 @@ extern uint64_t atomic_add_64_nv(volatile uint64_t *target, int64_t delta); extern uint8_t atomic_or_8_nv(volatile uint8_t *target, uint8_t value); extern void membar_producer(void); -#if defined(__sparc64__) || defined(__powerpc__) || defined(__arm__) +#if defined(__sparc64__) || defined(__powerpc__) || defined(__arm__) || \ + defined(__mips__) extern void atomic_or_8(volatile uint8_t *target, uint8_t value); #else static __inline void |