Source-Changes-HG archive

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

[src/trunk]: src/external/mpl/bind/dist/lib/isc disable pause, only works on v9



details:   https://anonhg.NetBSD.org/src/rev/bcbc97563800
branches:  trunk
changeset: 995939:bcbc97563800
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jan 11 02:44:49 2019 +0000

description:
disable pause, only works on v9

diffstat:

 external/mpl/bind/dist/lib/isc/rwlock.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 697952e15bdd -r bcbc97563800 external/mpl/bind/dist/lib/isc/rwlock.c
--- a/external/mpl/bind/dist/lib/isc/rwlock.c   Thu Jan 10 23:10:23 2019 +0000
+++ b/external/mpl/bind/dist/lib/isc/rwlock.c   Fri Jan 11 02:44:49 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rwlock.c,v 1.4 2019/01/10 18:09:45 christos Exp $      */
+/*     $NetBSD: rwlock.c,v 1.5 2019/01/11 02:44:49 christos Exp $      */
 
 /*
  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
@@ -58,7 +58,8 @@
 # define isc_rwlock_pause() __asm__ __volatile__ ("hint @pause")
 #elif defined(__arm__) && defined(_ARM_ARCH_6)
 # define isc_rwlock_pause() __asm__ __volatile__ ("yield")
-#elif defined(__sparc) || defined(__sparc__)
+// Disable pause, only works on v9
+#elif (defined(__sparc) || defined(__sparc__)) && defined(notdef)
 # define isc_rwlock_pause() __asm__ __volatile__ ("pause")
 #elif defined(__ppc__) || defined(_ARCH_PPC)  ||                       \
        defined(_ARCH_PWR) || defined(_ARCH_PWR2) || defined(_POWER)



Home | Main Index | Thread Index | Old Index