[RFC] Enable use of UserLocal Register (ULRI) if detected (patches)

Stacey Son sson at FreeBSD.org
Wed Feb 19 21:38:51 UTC 2014


On Feb 19, 2014, at 2:36 PM, Warner Losh <wlosh at bsdimp.com> wrote:

>> I have refreshed the patch with these changes:
>> 
>> http://people.freebsd.org/~sson/mips/ulri/ulri_kernel.diff
> 
> Did you upload the right patch, since this seems to be using the new #defines still..

You may need to refresh your browser.  (I used the same file name.  Sorry about that.)


> OK. I'll have to give these patches a spin on my octeon boards. I'd had a conversation with one if Cavium's engineers years ago where he said that he wished FreeBSD implemented TLS this way, implying cavium has them. But seeing the other note from Juli makes me unsure (since she would know better than I)...

I only have access to Octeon CN5020 (ERL) and it doesn't seem to have it. 

The "  Config3=" message generated from cpu_identify() say if the hardware supports it.  Bit 14 will be on...

#define	MIPS_CONFIG3_ULR	0x00002000	/* UserLocal reg implemented */

-stacey.



More information about the freebsd-mips mailing list