Hello.
> > I thought, that gdt entry consulted only while
> > loading its index into the segment register.
> >
> > So load_TLS_desc(next, cpu) must be called before
> > loading next->fs,next->gs in __switch_to() ?
>
> hm, right. I'm wondering, why did the tls_test code still work?
>
> Ingo
Because that code reloads %fs before every time in {read,write}seg.
Oleg.