8000 Use out-of-line M68K spinlock code for OpenBSD as well as NetBSD. · iCalistus/postgres@13f2bdb · GitHub
[go: up one dir, main page]

Skip to content

Commit 13f2bdb

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 8bd8b4b commit 13f2bdb

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
@@ -219,7 +219,7 @@ static void
219219
tas_dummy()
220220
{
221221
__asm__ __volatile__(
222-
#if defined(__NetBSD__) && defined(__ELF__)
222+
#if (defined(__NetBSD__) || defined(__OpenBSD__)) && defined(__ELF__)
223223
/* no underscore for label and % for registers */
224224
"\
225225
.global tas \n\
@@ -244,7 +244,7 @@ _tas: \n\
244244
_success: \n\
245245
moveq #0,d0 \n\
246246
rts \n"
247-
#endif /* __NetBSD__ && __ELF__ */
247+
#endif /* (__NetBSD__ || __OpenBSD__) && __ELF__ */
248248
);
249249
}
250250
#endif /* __m68k__ && !__linux__ */

0 commit comments

Comments
 (0)
0