linuxolator: tls_test results amd64

Divacky Roman xdivac02 at stud.fit.vutbr.cz
Mon Jan 22 22:11:59 UTC 2007


> overall you are saying that to support linux32 tls we have to
> 
> 1) load an unused segment with proper values
> 2) return the number of the segment from the set_thread_syscall
> 3) make the automatic loading/unloading of that segment to happen on
> every context switch (just like its done for segment 3 on i386)

rethought it a little and I think I understand now...

I think simple reloading the segment thats used for TLS (which one is it?)
on fbsd at amd64 should do the trick. what do you think?

so instead of rewriting just the base address we reload the whole
segment. that should not be that hard. but I dont understand the connection
between fs/gs and the segment. is it that reloading fs_base resets
the base in the segment the fs points at?

roman


More information about the freebsd-emulation mailing list