This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: %fs and %gs segments on x86/x86-64


FYI similarly, fs: is special on NT/x86 & gs: is special on NT/amd64. 


In both cases they point to "mostly private builtin" thread locals and from there "publically extensible" thread locals -- TlsGetValue & __declspec(thread) are accessed, & x86 exception handling frame chain, which is just another builtin thread local.


(fs: retains the same meaning for NT/x86-on-ia64-or-amd64 as on native NT/x86.)

 - Jay

On Jul 3, 2015, at 1:29 AM, Richard Biener <richard.guenther@gmail.com> wrote:

> On Thu, Jul 2, 2015 at 5:57 PM, Armin Rigo <arigo@tunes.org> wrote:
>> Hi all,
>> 
>> I implemented support for %fs and %gs segment prefixes on the x86 and
>> x86-64 platforms, in what turns out to be a small patch.
>> 
>> For those not familiar with it, at least on x86-64, %fs and %gs are
>> two special registers that a user program can ask be added to any
>> address machine ...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]