aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-11-20 18:05:02 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2017-11-20 18:05:02 -0500
commit2cfafabe64bae2d7923ab9863786d7bcc7cdf793 (patch)
tree080d0853e3a53ae7ff0828dead3015dd3edee790
parent516cea4bb273364edb118f75dceadfc9573ba024 (diff)
downloadpostgresql-2cfafabe64bae2d7923ab9863786d7bcc7cdf793.tar.gz
postgresql-2cfafabe64bae2d7923ab9863786d7bcc7cdf793.zip
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
-rw-r--r--src/backend/storage/lmgr/s_lock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/storage/lmgr/s_lock.c b/src/backend/storage/lmgr/s_lock.c
index 0afcba183b4..8925ef253c6 100644
--- a/src/backend/storage/lmgr/s_lock.c
+++ b/src/backend/storage/lmgr/s_lock.c
@@ -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__ */