Alexander Graf wrote: > Hi, > > this patch is based on the NPTL/TLS patch, David Woodhouse sent to the > list some months ago, which unfortulately did not work for me, so these > are the fixes needed to get it working. After all there is a certain > chance, that I got something wrong but basically it does the following: > > 1. Implement the tg_kill syscall > 2. Set the GS shadow register according to the information > set_thread_area receives. I'm not sure about that part, but using the > qemu internal functions (cpu_x86_load_seg) did not work for me. > 3. Implement the "new" (2.5.xx) TID setting features of clone() > 4. Use clone() for forking, since fork() did not always work for me > (especially when using TLS)
Please split the patch per-feature, and make sure it applies to CVS head. (It fails to apply because it appears to depend on another patch which adds fadvise64 support.) Also, keep the code formatting style the same as the surrounding code (line length, space vs. tabs, whitespace around parentheses, ... ). Thiemo