2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

use smt_pause instead of pause on sparc

This commit is contained in:
Mark Andrews 2019-01-15 11:35:40 +11:00 committed by Evan Hunt
parent 02497cf6d3
commit 2be55f5c05
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,5 @@
5135. [port] sparc: Use smt_pause() instead of pause. [GL #816]
5134. [bug] win32: WSAStartup was not called before getservbyname
was called. [GL #590]

View File

@ -18,6 +18,10 @@
#include <stddef.h>
#include <inttypes.h>
#if defined(sun) && (defined(__sparc) || defined(__sparc__))
#include <synch.h> /* for smt_pause(3c) */
#endif
#include <isc/atomic.h>
#include <isc/magic.h>
#include <isc/platform.h>
@ -52,6 +56,8 @@
# define isc_rwlock_pause() __asm__ __volatile__ ("hint @pause")
#elif defined(__arm__)
# define isc_rwlock_pause() __asm__ __volatile__ ("yield")
#elif defined(sun) && (defined(__sparc) || defined(__sparc__))
# define isc_rwlock_pause() smt_pause()
#elif defined(__sparc) || defined(__sparc__)
# define isc_rwlock_pause() __asm__ __volatile__ ("pause")
#elif defined(__ppc__) || defined(_ARCH_PPC) || \