Skip to content

Commit 2cfafab

Browse files
committed
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
1 parent 516cea4 commit 2cfafab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/storage/lmgr/s_lock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ static void
231231
tas_dummy()
232232
{
233233
__asm__ __volatile__(
234-
#if defined(__NetBSD__) && defined(__ELF__)
234+
#if (defined(__NetBSD__) || defined(__OpenBSD__)) && defined(__ELF__)
235235
/* no underscore for label and % for registers */
236236
"\
237237
.global tas \n\
@@ -256,7 +256,7 @@ _tas: \n\
256256
_success: \n\
257257
moveq #0,d0 \n\
258258
rts \n"
259-
#endif /* __NetBSD__ && __ELF__ */
259+
#endif /* (__NetBSD__ || __OpenBSD__) && __ELF__ */
260260
);
261261
}
262262
#endif /* __m68k__ && !__linux__ */

0 commit comments

Comments
 (0)