Skip to content

Commit 1056dd0

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 0245c75 commit 1056dd0

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
@@ -223,7 +223,7 @@ static void
223223
tas_dummy()
224224
{
225225
__asm__ __volatile__(
226-
#if defined(__NetBSD__) && defined(__ELF__)
226+
#if (defined(__NetBSD__) || defined(__OpenBSD__)) && defined(__ELF__)
227227
/* no underscore for label and % for registers */
228228
"\
229229
.global tas \n\
@@ -248,7 +248,7 @@ _tas: \n\
248248
_success: \n\
249249
moveq #0,d0 \n\
250250
rts \n"
251-
#endif /* __NetBSD__ && __ELF__ */
251+
#endif /* (__NetBSD__ || __OpenBSD__) && __ELF__ */
252252
);
253253
}
254254
#endif /* __m68k__ && !__linux__ */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy