2015-05-12 02:00:43

by Pengfei Yuan

[permalink] [raw]
Subject: Question: use of FS, GS segment registers in Linux

Hi,

What is the use of FS, GS segment registers in kernel and user mode,
on x86 and x86-64?
Where can I find the related kernel (definition/setup) code?

I have read the code in arch/x86/include/asm/segment.h, but still a
little confused.

Regards,

Yuan, Pengfei