Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitae772bb

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 parent1ecf7ee commitae772bb

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
@@ -251,7 +251,7 @@ static void
251251
tas_dummy()
252252
{
253253
__asm__ __volatile__(
254-
#if defined(__NetBSD__)&& defined(__ELF__)
254+
#if(defined(__NetBSD__)|| defined(__OpenBSD__))&& defined(__ELF__)
255255
/* no underscore for label and % for registers */
256256
"\
257257
.globaltas \n\
@@ -276,7 +276,7 @@ _tas:\n\
276276
_success:\n\
277277
moveq #0,d0\n\
278278
rts\n"
279-
#endif/* __NetBSD__ && __ELF__ */
279+
#endif/*(__NetBSD__ || __OpenBSD__) && __ELF__ */
280280
);
281281
}
282282
#endif/* __m68k__ && !__linux__ */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp