diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2017-11-20 18:05:02 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2017-11-20 18:05:02 -0500 |
commit | fa9a69d3db69b3d65254987b43acf1ca977504c8 (patch) | |
tree | 6753357f979f2db6a7c2c6a2db9b4e776e2ac09b | |
parent | 940bafa75a0417128279095673a22d6d9b9e8413 (diff) | |
download | postgresql-fa9a69d3db69b3d65254987b43acf1ca977504c8.tar.gz postgresql-fa9a69d3db69b3d65254987b43acf1ca977504c8.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.c | 4 |
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 599940cbd2d..201bcc5fa30 100644 --- a/src/backend/storage/lmgr/s_lock.c +++ b/src/backend/storage/lmgr/s_lock.c @@ -251,7 +251,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\ @@ -276,7 +276,7 @@ _tas: \n\ _success: \n\ moveq #0,d0 \n\ rts \n" -#endif /* __NetBSD__ && __ELF__ */ +#endif /* (__NetBSD__ || __OpenBSD__) && __ELF__ */ ); } #endif /* __m68k__ && !__linux__ */ |