Ok. The much better thing to do is to use GDT entries for the standard segments. I don't really know why Mach never did that in the first place.
I think that i386_set_ldt was never used in Mach originally for adding some segments to the standard set, as we want to do for TLS. It was used only for special x86 emulation purposes, where the user always supplied all the segments they wanted to exist at all. So if it was ever tested with the old code, it might not have mattered for the uses that were tried. However, it would be good to understand what the 1999-09-15 change was trying to fix. I don't really know what he meant by, "Prevent thrashing the LDT for the current thread." Thanks, Roland _______________________________________________ Bug-hurd mailing list Bug-hurd@gnu.org http://lists.gnu.org/mailman/listinfo/bug-hurd