Get TCB address using the RDHWR instruction instead of __get_tcb().
authorvisa <visa@openbsd.org>
Thu, 20 Apr 2017 16:07:52 +0000 (16:07 +0000)
committervisa <visa@openbsd.org>
Thu, 20 Apr 2017 16:07:52 +0000 (16:07 +0000)
commit29879bdc832b3287067872faf4c1f759268348c9
tree35d7d37bce184674698a5b83ac8539af6bb70ad3
parent2fef4a9239f881729bf148d7a57caa1ebe22d91f
Get TCB address using the RDHWR instruction instead of __get_tcb().
This gives fast access to the address on systems that implement
the UserLocal register. TCB caching is still used when running
in the single-threaded mode in order not to penalize old systems.

The kernel counterpart of this change must be in place before
using this diff!

With guenther@
include/tib.h
lib/libc/include/cancel.h
sys/arch/mips64/include/tcb.h