On Thursday 27 July 2006 17:21, John Baldwin wrote: > On Monday 24 July 2006 21:58, Tijl Coosemans wrote: > > However, Wine/Windows uses %fs for TLS and it appears that the > > FreeBSD kernel doesn't preserve it. It always ends up pointing to > > GUDATA_SEL. > > The kernel should preserve %fs across syscalls, traps, and faults. > Can you point to a specific case where %fs is not preserved? It > sounds like %fs is never set to a value in Wine.
Yes, it was a combination of compiler optimizations and an inline assembly block missing __volatile__.
pgpwq6J5daZJN.pgp
Description: PGP signature