[PATCH] Retrieval of TLS pointer via RDHWR
Jayachandran C.
c.jayachandran at gmail.com
Sun Jan 2 07:39:55 UTC 2011
On Fri, Dec 31, 2010 at 8:36 PM, Robert Millan <rmh at debian.org> wrote:
> 2010/12/28 Warner Losh <imp at bsdimp.com>:
>> I reviewed the patch, and I liked it. Couldn't find anything wrong with it
>> when I first looked at it. Would be nice if things were more flexible, but
>> since generalizing from a sample size of one can be hard, I totally agree.
>
> Great. So will someone commit this? :-)
I will look at committing this.
BTW, The netlogic(RMI) contributed code had a different implementation
for this. The User Reserved Instruction exception had a fast path for
RDHWR which used k0/k1 and returned the value without taking the full
trap. I hadn't looked at adding that either (mostly because I did
not see an immediate requirement).
Another emulation missing in the kernel is for floating point...
Regards,
JC.
More information about the freebsd-mips
mailing list