]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Implement _umtx_op_err.S on powerpc / powerpc64.
authorbdragon <bdragon@FreeBSD.org>
Fri, 9 Aug 2019 20:16:38 +0000 (20:16 +0000)
committerbdragon <bdragon@FreeBSD.org>
Fri, 9 Aug 2019 20:16:38 +0000 (20:16 +0000)
commit13d5b92ecfd5e6483f11e9ccbe5fbc9d4c900e1a
tree0ae60c13195fd4112c7931cc943e10d2bcbb9ecd
parent89ac5aac3de6af2ca5b80943d6846f31ea5e7183
Implement _umtx_op_err.S on powerpc / powerpc64.

As per r177853, we need to avoid using errno inside user mutex code, since
 signal handlers can interfere with it and mess up libthr internal state.

So, implement _umtx_op_err() instead, which makes a raw syscall and
returns the error value directly instead of using errno.

Approved by: jhibbits (mentor)
Differential Revision: https://reviews.freebsd.org/D20946
lib/libthr/arch/powerpc/Makefile.inc [new file with mode: 0644]
lib/libthr/arch/powerpc/include/pthread_md.h
lib/libthr/arch/powerpc/powerpc/_umtx_op_err.S [new file with mode: 0644]