Richard B. Johnson wrote:
> > fix kernel handling of %fs and %gs registers on x86
> >
> > ?? It's preventing major optimizations in the thread library.
> >
>
> Previously, no kernel code I've seen used these registers so they are
> never touched during a context-switch. If these are now used by the C
> compiler, it is the responsibility of that compiler to preserve the
> segment registers in its code generation so a potential problem has
> been overlooked.
The C compiler doesn't touch %fs or %gs, so in principle they don't need
to be saved due to kernel entry/exit. But something is clobbering them.
Probably the restore code, which has a path which zeros a descriptor if
reloading it fails for some reason.
-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Apr 30 2000 - 21:00:09 EST