mirror of
https://github.com/postgres/postgres.git
synced 2025-05-06 19:59:18 +03:00
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
This commit is contained in:
parent
940bafa75a
commit
fa9a69d3db
@ -251,7 +251,7 @@ static void
|
|||||||
tas_dummy()
|
tas_dummy()
|
||||||
{
|
{
|
||||||
__asm__ __volatile__(
|
__asm__ __volatile__(
|
||||||
#if defined(__NetBSD__) && defined(__ELF__)
|
#if (defined(__NetBSD__) || defined(__OpenBSD__)) && defined(__ELF__)
|
||||||
/* no underscore for label and % for registers */
|
/* no underscore for label and % for registers */
|
||||||
"\
|
"\
|
||||||
.global tas \n\
|
.global tas \n\
|
||||||
@ -276,7 +276,7 @@ _tas: \n\
|
|||||||
_success: \n\
|
_success: \n\
|
||||||
moveq #0,d0 \n\
|
moveq #0,d0 \n\
|
||||||
rts \n"
|
rts \n"
|
||||||
#endif /* __NetBSD__ && __ELF__ */
|
#endif /* (__NetBSD__ || __OpenBSD__) && __ELF__ */
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
#endif /* __m68k__ && !__linux__ */
|
#endif /* __m68k__ && !__linux__ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user