Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/rump/librump/rumpkern Add aliases for _atomic_cas_foo, a...
details: https://anonhg.NetBSD.org/src/rev/db025db741fe
branches: trunk
changeset: 758999:db025db741fe
user: pooka <pooka%NetBSD.org@localhost>
date: Tue Nov 23 12:51:10 2010 +0000
description:
Add aliases for _atomic_cas_foo, as they are used often. A snafu
in "./build.sh rumptest" prevented me from noticing this yesterday,
so thanks to Nick Hudson for re-pinging.
(I'll fix build.sh shortly)
diffstat:
sys/rump/librump/rumpkern/rump_atomic_cas_up.c | 32 ++++++++++++++++---------
1 files changed, 20 insertions(+), 12 deletions(-)
diffs (59 lines):
diff -r 1598e6a5aaac -r db025db741fe sys/rump/librump/rumpkern/rump_atomic_cas_up.c
--- a/sys/rump/librump/rumpkern/rump_atomic_cas_up.c Tue Nov 23 12:41:47 2010 +0000
+++ b/sys/rump/librump/rumpkern/rump_atomic_cas_up.c Tue Nov 23 12:51:10 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rump_atomic_cas_up.c,v 1.1 2010/11/22 10:50:51 pooka Exp $ */
+/* $NetBSD: rump_atomic_cas_up.c,v 1.2 2010/11/23 12:51:10 pooka Exp $ */
/*-
* Copyright (c) 2010 Antti Kantee. All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_atomic_cas_up.c,v 1.1 2010/11/22 10:50:51 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_atomic_cas_up.c,v 1.2 2010/11/23 12:51:10 pooka Exp $");
/*
* Uniprocessor version of atomic CAS. Since there is no preemption
@@ -35,10 +35,10 @@
#include <sys/types.h>
-uint32_t rumpup_cas_32_up(volatile uint32_t *ptr, uint32_t, uint32_t);
+uint32_t rump_cas_32_up(volatile uint32_t *ptr, uint32_t, uint32_t);
uint32_t
-rumpup_cas_32_up(volatile uint32_t *ptr, uint32_t old, uint32_t new)
+rump_cas_32_up(volatile uint32_t *ptr, uint32_t old, uint32_t new)
{
uint32_t ret;
@@ -50,11 +50,19 @@
return ret;
}
-__strong_alias(atomic_cas_32,rumpup_cas_32_up)
-__strong_alias(atomic_cas_uint,rumpup_cas_32_up)
-__strong_alias(atomic_cas_ulong,rumpup_cas_32_up)
-__strong_alias(atomic_cas_ptr,rumpup_cas_32_up)
-__strong_alias(atomic_cas_32_ni,rumpup_cas_32_up)
-__strong_alias(atomic_cas_uint_ni,rumpup_cas_32_up)
-__strong_alias(atomic_cas_ulong_ni,rumpup_cas_32_up)
-__strong_alias(atomic_cas_ptr_ni,rumpup_cas_32_up)
+__strong_alias(atomic_cas_32,rump_cas_32_up)
+__strong_alias(_atomic_cas_32,rump_cas_32_up)
+__strong_alias(atomic_cas_uint,rump_cas_32_up)
+__strong_alias(_atomic_cas_uint,rump_cas_32_up)
+__strong_alias(atomic_cas_ulong,rump_cas_32_up)
+__strong_alias(_atomic_cas_ulong,rump_cas_32_up)
+__strong_alias(atomic_cas_ptr,rump_cas_32_up)
+__strong_alias(_atomic_cas_ptr,rump_cas_32_up)
+__strong_alias(atomic_cas_32_ni,rump_cas_32_up)
+__strong_alias(_atomic_cas_32_ni,rump_cas_32_up)
+__strong_alias(atomic_cas_uint_ni,rump_cas_32_up)
+__strong_alias(_atomic_cas_uint_ni,rump_cas_32_up)
+__strong_alias(atomic_cas_ulong_ni,rump_cas_32_up)
+__strong_alias(_atomic_cas_ulong_ni,rump_cas_32_up)
+__strong_alias(atomic_cas_ptr_ni,rump_cas_32_up)
+__strong_alias(_atomic_cas_ptr_ni,rump_cas_32_up)
Home |
Main Index |
Thread Index |
Old Index