mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 05:28:00 +00:00
use smt_pause instead of pause on sparc
This commit is contained in:
parent
02497cf6d3
commit
2be55f5c05
2
CHANGES
2
CHANGES
@ -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]
|
||||
|
||||
|
@ -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) || \
|
||||
|
Loading…
x
Reference in New Issue
Block a user