forget_segments and copy_segments are already dead, release_segments is used right now for i386 and x86_64 to release the ldt structures. But the code is asymmetric: creation in init_new_context(), destruction in release_segments(). What about the attached patch? i386 and x86_64 can use destroy_context, then the _segment functions can be removed entirely. -- Manfred