2016-05-26 15:23:15 +00:00
|
|
|
diff --git a/configure.in b/configure.in
|
2018-09-19 17:17:58 +00:00
|
|
|
index 896e81c1ce..73b1c8ccbb 100644
|
2016-05-26 15:23:15 +00:00
|
|
|
--- a/configure.in
|
|
|
|
+++ b/configure.in
|
2018-09-19 17:17:58 +00:00
|
|
|
@@ -4275,6 +4275,10 @@ if test "yes" = "$use_atomic"; then
|
2010-03-01 14:12:40 +00:00
|
|
|
AC_MSG_RESULT($arch)
|
|
|
|
fi
|
|
|
|
|
|
|
|
+if test ! "$arch" = "x86_64" -a "$have_xaddq" = "yes"; then
|
|
|
|
+ AC_MSG_ERROR([XADDQ present but disabled by Fedora patch!])
|
|
|
|
+fi
|
|
|
|
+
|
2017-06-15 15:50:41 +00:00
|
|
|
if test "yes" = "$have_atomic"; then
|
2010-03-01 14:12:40 +00:00
|
|
|
AC_MSG_CHECKING([compiler support for inline assembly code])
|
|
|
|
|
2016-05-26 15:23:15 +00:00
|
|
|
diff --git a/lib/isc/include/isc/platform.h.in b/lib/isc/include/isc/platform.h.in
|
2018-09-19 17:17:58 +00:00
|
|
|
index 2ff522342f..58df86adb3 100644
|
2016-05-26 15:23:15 +00:00
|
|
|
--- a/lib/isc/include/isc/platform.h.in
|
|
|
|
+++ b/lib/isc/include/isc/platform.h.in
|
2018-09-19 17:17:58 +00:00
|
|
|
@@ -289,19 +289,25 @@
|
2010-03-01 14:12:40 +00:00
|
|
|
* If the "xaddq" operation (64bit xadd) is available on this architecture,
|
|
|
|
* ISC_PLATFORM_HAVEXADDQ will be defined.
|
|
|
|
*/
|
|
|
|
-@ISC_PLATFORM_HAVEXADDQ@
|
2018-09-19 17:17:58 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
- * If the 32-bit "atomic swap" operation is available on this
|
|
|
|
- * architecture, ISC_PLATFORM_HAVEATOMICSTORE" will be defined.
|
|
|
|
+ * If the 64-bit "atomic swap" operation is available on this
|
|
|
|
+ * architecture, ISC_PLATFORM_HAVEATOMICSTOREQ" will be defined.
|
|
|
|
*/
|
|
|
|
-@ISC_PLATFORM_HAVEATOMICSTORE@
|
|
|
|
+
|
2010-03-01 14:12:40 +00:00
|
|
|
+#ifdef __x86_64__
|
|
|
|
+#define ISC_PLATFORM_HAVEXADDQ 1
|
2018-09-19 17:17:58 +00:00
|
|
|
+#define ISC_PLATFORM_HAVEATOMICSTOREQ 1
|
2010-03-01 14:12:40 +00:00
|
|
|
+#else
|
|
|
|
+#undef ISC_PLATFORM_HAVEXADDQ
|
2018-09-19 17:17:58 +00:00
|
|
|
+#undef ISC_PLATFORM_HAVEATOMICSTOREQ
|
2010-03-01 14:12:40 +00:00
|
|
|
+#endif
|
|
|
|
|
|
|
|
/*
|
2018-09-19 17:17:58 +00:00
|
|
|
- * If the 64-bit "atomic swap" operation is available on this
|
|
|
|
+ * If the 32-bit "atomic swap" operation is available on this
|
|
|
|
* architecture, ISC_PLATFORM_HAVEATOMICSTORE" will be defined.
|
|
|
|
*/
|
|
|
|
-@ISC_PLATFORM_HAVEATOMICSTOREQ@
|
|
|
|
+@ISC_PLATFORM_HAVEATOMICSTORE@
|
|
|
|
|
|
|
|
/*
|
|
|
|
* If the "compare-and-exchange" operation is available on this architecture,
|