Use out-of-line M68K spinlock code for OpenBSD as well as NetBSD.

David Carlier (from a patch being carried by OpenBSD packagers)

Discussion: https://postgr.es/m/CA+XhMqzwFSGVU7MEnfhCecc8YdP98tigXzzpd0AAdwaGwaVXEA@mail.gmail.com
This commit is contained in:
Tom Lane 2017-11-20 18:05:02 -05:00
parent 516cea4bb2
commit 2cfafabe64

View File

@ -231,7 +231,7 @@ static void
tas_dummy()
{
__asm__ __volatile__(
#if defined(__NetBSD__) && defined(__ELF__)
#if (defined(__NetBSD__) || defined(__OpenBSD__)) && defined(__ELF__)
/* no underscore for label and % for registers */
"\
.global tas \n\
@ -256,7 +256,7 @@ _tas: \n\
_success: \n\
moveq #0,d0 \n\
rts \n"
#endif /* __NetBSD__ && __ELF__ */
#endif /* (__NetBSD__ || __OpenBSD__) && __ELF__ */
);
}
#endif /* __m68k__ && !__linux__ */