linuxolator: tls_test results amd64

Divacky Roman xdivac02 at stud.fit.vutbr.cz
Sun Jan 21 18:54:48 UTC 2007


the tls_test program is at

www.stud.fit.vutbr.cz/~xdivac02/tls_test.c

On Sun, Jan 21, 2007 at 12:41:02PM -0600, Scot Hetzel wrote:
> Divacky Roman asked me to update my sources to the latest P4 patches
> and run the tls_test program.  Below are the results:
> 
> hp010 / # ./tls_test
> 
> doing 1st set_thread_area():
> ====> got GDT selector: 0x0 --- TEST PASSED.
> 
> reading first byte of [0x00000000] TLS:
> ====> 123 --- TEST PASSED.
> 
> doing 2nd set_thread_area():
> ====> got GDT selector: 0x4 --- TEST PASSED.
> context-switching once ...
> 
> reading first byte of 4K [0x0804aca0] TLS:
> Segmentation fault (core dumped)

this means that we are able to set up the TLS for the very first
time but not any other time.

can someone explain this?


More information about the freebsd-emulation mailing list