]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libthr: move _umtx_op_err() to libsys
authorBrooks Davis <brooks@FreeBSD.org>
Wed, 17 Jan 2024 20:26:52 +0000 (20:26 +0000)
committerBrooks Davis <brooks@FreeBSD.org>
Mon, 5 Feb 2024 20:34:56 +0000 (20:34 +0000)
commitef9871c6205c158b16ee23702d2b8c043debc51a
tree475baf3f7056c4fbc9f848123a0429ebdb95ce17
parente9d961055aa2502f4915611e8fb2e9f9f9c86719
libthr: move _umtx_op_err() to libsys

Declare in sys/umtx.h and implement in libsys.  Explicitly link libthr
with libsys.

When building libthr static include _umtx_op_err so we don't break static
linkage with -lpthread.

Reviewed by: kib, emaste, imp
Pull Request: https://github.com/freebsd/freebsd-src/pull/908
20 files changed:
lib/libsys/Makefile
lib/libsys/Symbol.thr.map [new file with mode: 0644]
lib/libsys/_umtx_op_err.c [new file with mode: 0644]
lib/libsys/amd64/Makefile.thr [new file with mode: 0644]
lib/libsys/amd64/_umtx_op_err.S [moved from lib/libthr/arch/amd64/amd64/_umtx_op_err.S with 100% similarity]
lib/libsys/i386/Makefile.thr [new file with mode: 0644]
lib/libsys/i386/_umtx_op_err.S [moved from lib/libthr/arch/i386/i386/_umtx_op_err.S with 100% similarity]
lib/libsys/powerpc/Makefile.thr [new file with mode: 0644]
lib/libsys/powerpc/_umtx_op_err.S [moved from lib/libthr/arch/powerpc/powerpc/_umtx_op_err.S with 100% similarity]
lib/libthr/Makefile
lib/libthr/arch/amd64/Makefile.inc
lib/libthr/arch/amd64/include/pthread_md.h
lib/libthr/arch/i386/Makefile.inc
lib/libthr/arch/i386/include/pthread_md.h
lib/libthr/arch/powerpc/Makefile.inc [deleted file]
lib/libthr/arch/powerpc/include/pthread_md.h
lib/libthr/thread/thr_umtx.c
lib/libthr/thread/thr_umtx.h
rescue/rescue/Makefile
sys/sys/umtx.h