Source-Changes-HG archive

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

[src/trunk]: src/external/mpl/bind/include/isc avoid using x86 specific asm o...



details:   https://anonhg.NetBSD.org/src/rev/6a1ee498bb21
branches:  trunk
changeset: 992079:6a1ee498bb21
user:      mrg <mrg%NetBSD.org@localhost>
date:      Mon Aug 13 07:17:34 2018 +0000

description:
avoid using x86 specific asm on all platforms.

XXX: this might want to be expanded or something more portable used.

diffstat:

 external/mpl/bind/include/isc/platform.h |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (15 lines):

diff -r 4932c34d50ac -r 6a1ee498bb21 external/mpl/bind/include/isc/platform.h
--- a/external/mpl/bind/include/isc/platform.h  Mon Aug 13 07:14:47 2018 +0000
+++ b/external/mpl/bind/include/isc/platform.h  Mon Aug 13 07:17:34 2018 +0000
@@ -346,7 +346,11 @@
 /*
  * Define with the busy wait nop asm or function call.
  */
+#if defined(__x86_64__) || defined(__i386__)
 #define ISC_PLATFORM_BUSYWAITNOP asm("rep; nop")
+#else
+#undef ISC_PLATFORM_BUSYWAITNOP
+#endif
 
 /*
  * Define if the platform has <strings.h>.



Home | Main Index | Thread Index | Old Index