Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/common/lib/libc/atomic fix tpyos.



details:   https://anonhg.NetBSD.org/src/rev/51466cb028ab
branches:  trunk
changeset: 793114:51466cb028ab
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Jan 27 18:36:52 2014 +0000

description:
fix tpyos.

diffstat:

 common/lib/libc/atomic/atomic_and_32_cas.c |  4 ++--
 common/lib/libc/atomic/atomic_or_32_cas.c  |  4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 9241166a7e4f -r 51466cb028ab common/lib/libc/atomic/atomic_and_32_cas.c
--- a/common/lib/libc/atomic/atomic_and_32_cas.c        Mon Jan 27 18:36:37 2014 +0000
+++ b/common/lib/libc/atomic/atomic_and_32_cas.c        Mon Jan 27 18:36:52 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic_and_32_cas.c,v 1.6 2014/01/27 18:29:47 matt Exp $       */
+/*     $NetBSD: atomic_and_32_cas.c,v 1.7 2014/01/27 18:36:52 matt Exp $       */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
 
 #include <sys/atomic.h>
 
-uint32_t atomic_and_32(volatile uint32_t *, uint32_t);
+uint32_t __sync_fetch_and_and_4(volatile uint32_t *, uint32_t);
 
 uint32_t
 __sync_fetch_and_and_4(volatile uint32_t *addr, uint32_t val)
diff -r 9241166a7e4f -r 51466cb028ab common/lib/libc/atomic/atomic_or_32_cas.c
--- a/common/lib/libc/atomic/atomic_or_32_cas.c Mon Jan 27 18:36:37 2014 +0000
+++ b/common/lib/libc/atomic/atomic_or_32_cas.c Mon Jan 27 18:36:52 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atomic_or_32_cas.c,v 1.6 2014/01/27 18:29:47 matt Exp $        */
+/*     $NetBSD: atomic_or_32_cas.c,v 1.7 2014/01/27 18:36:52 matt Exp $        */
 
 /*-
  * Copyright (c) 2007 The NetBSD Foundation, Inc.
@@ -50,7 +50,7 @@
 void
 atomic_or_32(volatile uint32_t *addr, uint32_t val)
 {
-       (void) __sync_val_compare_and_swap_4(addr, val);
+       (void) __sync_fetch_and_or_4(addr, val);
 }
 
 #undef atomic_or_32



Home | Main Index | Thread Index | Old Index