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/5dca6f24211d
branches:  trunk
changeset: 365380:5dca6f24211d
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 f09382333280 -r 5dca6f24211d 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