From 372461e58e016faf7c276d986e97f393778672e4 Mon Sep 17 00:00:00 2001 From: ad Date: Sun, 10 Feb 2008 13:32:14 +0000 Subject: [PATCH] Add aliases for atomic_cas_foo_ni(). --- sys/arch/arm/arm/lock_cas.S | 11 ++++++++++- sys/arch/hppa/hppa/lock_stubs.S | 11 ++++++++++- sys/arch/mips/mips/lock_stubs.S | 24 +++++++++++++++++++++++- sys/arch/sh3/sh3/lock_stubs.S | 11 ++++++++++- sys/arch/vax/vax/lock_stubs.S | 11 ++++++++++- 5 files changed, 63 insertions(+), 5 deletions(-) diff --git a/sys/arch/arm/arm/lock_cas.S b/sys/arch/arm/arm/lock_cas.S index be3b9bf7f221..9633e8970ead 100644 --- a/sys/arch/arm/arm/lock_cas.S +++ b/sys/arch/arm/arm/lock_cas.S @@ -1,4 +1,4 @@ -/* $NetBSD: lock_cas.S,v 1.2 2007/11/29 15:17:45 ad Exp $ */ +/* $NetBSD: lock_cas.S,v 1.3 2008/02/10 13:32:14 ad Exp $ */ /*- * Copyright (c) 2007 The NetBSD Foundation, Inc. @@ -114,3 +114,12 @@ STRONG_ALIAS(_atomic_cas_uint,_lock_cas) STRONG_ALIAS(atomic_cas_uint,_lock_cas) STRONG_ALIAS(_atomic_cas_ptr,_lock_cas) STRONG_ALIAS(atomic_cas_ptr,_lock_cas) + +STRONG_ALIAS(_atomic_cas_ulong_ni,_lock_cas) +STRONG_ALIAS(atomic_cas_ulong_ni,_lock_cas) +STRONG_ALIAS(_atomic_cas_32_ni,_lock_cas) +STRONG_ALIAS(atomic_cas_32_ni,_lock_cas) +STRONG_ALIAS(_atomic_cas_uint_ni,_lock_cas) +STRONG_ALIAS(atomic_cas_uint_ni,_lock_cas) +STRONG_ALIAS(_atomic_cas_ptr_ni,_lock_cas) +STRONG_ALIAS(atomic_cas_ptr_ni,_lock_cas) diff --git a/sys/arch/hppa/hppa/lock_stubs.S b/sys/arch/hppa/hppa/lock_stubs.S index 3f1bbd14077b..e14e69afda5c 100644 --- a/sys/arch/hppa/hppa/lock_stubs.S +++ b/sys/arch/hppa/hppa/lock_stubs.S @@ -1,4 +1,4 @@ -/* $NetBSD: lock_stubs.S,v 1.11 2007/12/22 14:14:31 skrll Exp $ */ +/* $NetBSD: lock_stubs.S,v 1.12 2008/02/10 13:32:14 ad Exp $ */ /*- * Copyright (c) 2006, 2007 The NetBSD Foundation, Inc. @@ -92,6 +92,15 @@ STRONG_ALIAS(atomic_cas_uint,_lock_cas) STRONG_ALIAS(_atomic_cas_ptr,_lock_cas) STRONG_ALIAS(atomic_cas_ptr,_lock_cas) +STRONG_ALIAS(_atomic_cas_ulong_ni,_lock_cas) +STRONG_ALIAS(atomic_cas_ulong_ni,_lock_cas) +STRONG_ALIAS(_atomic_cas_32_ni,_lock_cas) +STRONG_ALIAS(atomic_cas_32_ni,_lock_cas) +STRONG_ALIAS(_atomic_cas_uint_ni,_lock_cas) +STRONG_ALIAS(atomic_cas_uint_ni,_lock_cas) +STRONG_ALIAS(_atomic_cas_ptr_ni,_lock_cas) +STRONG_ALIAS(atomic_cas_ptr_ni,_lock_cas) + #ifndef LOCKDEBUG /* * void mutex_exit(kmutex_t *mtx); diff --git a/sys/arch/mips/mips/lock_stubs.S b/sys/arch/mips/mips/lock_stubs.S index c4e22cb9a8e1..b428ec463c9d 100644 --- a/sys/arch/mips/mips/lock_stubs.S +++ b/sys/arch/mips/mips/lock_stubs.S @@ -1,4 +1,4 @@ -/* $NetBSD: lock_stubs.S,v 1.7 2007/11/29 01:04:20 ad Exp $ */ +/* $NetBSD: lock_stubs.S,v 1.8 2008/02/10 13:32:14 ad Exp $ */ /*- * Copyright (c) 2007 The NetBSD Foundation, Inc. @@ -109,9 +109,17 @@ STRONG_ALIAS(atomic_cas_ulong,_atomic_cas_ulong) STRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_ulong) STRONG_ALIAS(atomic_cas_ptr,_atomic_cas_ulong) +STRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_ulong) +STRONG_ALIAS(atomic_cas_ulong_ni,_atomic_cas_ulong) +STRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_ulong) +STRONG_ALIAS(atomic_cas_ptr_ni,_atomic_cas_ulong) + #if defined(__mips_n32) || defined(_LP64) STRONG_ALIAS(_atomic_cas_64,_atomic_cas_ulong) STRONG_ALIAS(atomic_cas_64,_atomic_cas_ulong) + +STRONG_ALIAS(_atomic_cas_64_ni,_atomic_cas_ulong) +STRONG_ALIAS(atomic_cas_64_ni,_atomic_cas_ulong) #endif /* @@ -137,6 +145,11 @@ STRONG_ALIAS(_atomic_cas_32,_atomic_cas_uint) STRONG_ALIAS(atomic_cas_32,_atomic_cas_uint) STRONG_ALIAS(atomic_cas_uint,_atomic_cas_uint) +STRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_uint) +STRONG_ALIAS(atomic_cas_32_ni,_atomic_cas_uint) +STRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_uint) +STRONG_ALIAS(atomic_cas_uint_ni,_atomic_cas_uint) + #ifndef LOCKDEBUG /* @@ -287,6 +300,15 @@ STRONG_ALIAS(atomic_cas_uint,_atomic_cas_ulong) STRONG_ALIAS(_atomic_cas_ptr,_atomic_cas_ulong) STRONG_ALIAS(atomic_cas_ptr,_atomic_cas_ulong) +STRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_ulong) +STRONG_ALIAS(atomic_cas_ulong_ni,_atomic_cas_ulong) +STRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_ulong) +STRONG_ALIAS(atomic_cas_32_ni,_atomic_cas_ulong) +STRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_ulong) +STRONG_ALIAS(atomic_cas_uint_ni,_atomic_cas_ulong) +STRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_ulong) +STRONG_ALIAS(atomic_cas_ptr_ni,_atomic_cas_ulong) + #ifndef LOCKDEBUG /* * int mutex_enter(kmutex_t *mtx); diff --git a/sys/arch/sh3/sh3/lock_stubs.S b/sys/arch/sh3/sh3/lock_stubs.S index 00f3a430eecf..057ebc8d03e7 100644 --- a/sys/arch/sh3/sh3/lock_stubs.S +++ b/sys/arch/sh3/sh3/lock_stubs.S @@ -1,4 +1,4 @@ -/* $NetBSD: lock_stubs.S,v 1.11 2007/11/29 17:33:09 ad Exp $ */ +/* $NetBSD: lock_stubs.S,v 1.12 2008/02/10 13:32:14 ad Exp $ */ /* * Copyright (c) 2007 Valeriy E. Ushakov @@ -72,6 +72,15 @@ STRONG_ALIAS(atomic_cas_uint,_lock_cas) STRONG_ALIAS(_atomic_cas_ptr,_lock_cas) STRONG_ALIAS(atomic_cas_ptr,_lock_cas) +STRONG_ALIAS(_atomic_cas_ulong_ni,_lock_cas) +STRONG_ALIAS(atomic_cas_ulong_ni,_lock_cas) +STRONG_ALIAS(_atomic_cas_32_ni,_lock_cas) +STRONG_ALIAS(atomic_cas_32_ni,_lock_cas) +STRONG_ALIAS(_atomic_cas_uint_ni,_lock_cas) +STRONG_ALIAS(atomic_cas_uint_ni,_lock_cas) +STRONG_ALIAS(_atomic_cas_ptr_ni,_lock_cas) +STRONG_ALIAS(atomic_cas_ptr_ni,_lock_cas) + #if !defined(LOCKDEBUG) /* diff --git a/sys/arch/vax/vax/lock_stubs.S b/sys/arch/vax/vax/lock_stubs.S index 705a75168846..146e8542843f 100644 --- a/sys/arch/vax/vax/lock_stubs.S +++ b/sys/arch/vax/vax/lock_stubs.S @@ -1,4 +1,4 @@ -/* $NetBSD: lock_stubs.S,v 1.8 2008/02/03 08:34:04 matt Exp $ */ +/* $NetBSD: lock_stubs.S,v 1.9 2008/02/10 13:32:15 ad Exp $ */ /*- * Copyright (c) 2002, 2006, 2007 The NetBSD Foundation, Inc. @@ -165,3 +165,12 @@ STRONG_ALIAS(_atomic_cas_uint,_atomic_cas_32) STRONG_ALIAS(atomic_cas_ulong,_atomic_cas_32) STRONG_ALIAS(_atomic_cas_ulong,_atomic_cas_32) STRONG_ALIAS(atomic_cas_32,_atomic_cas_32) + +STRONG_ALIAS(atomic_cas_ptr_ni,_atomic_cas_32) +STRONG_ALIAS(_atomic_cas_ptr_ni,_atomic_cas_32) +STRONG_ALIAS(atomic_cas_uint_ni,_atomic_cas_32) +STRONG_ALIAS(_atomic_cas_uint_ni,_atomic_cas_32) +STRONG_ALIAS(atomic_cas_ulong_ni,_atomic_cas_32) +STRONG_ALIAS(_atomic_cas_ulong_ni,_atomic_cas_32) +STRONG_ALIAS(atomic_cas_32_ni,_atomic_cas_32) +STRONG_ALIAS(_atomic_cas_32_ni,_atomic_cas_32)