2002-07-28 20:12:42

by Oleg Nesterov

[permalink] [raw]
Subject: Re: [announce, patch] Thread-Local Storage (TLS) support for Linux,2.5.28

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.