Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752464AbbELCAn (ORCPT ); Mon, 11 May 2015 22:00:43 -0400 Received: from mail-wg0-f42.google.com ([74.125.82.42]:36114 "EHLO mail-wg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752326AbbELCAj (ORCPT ); Mon, 11 May 2015 22:00:39 -0400 MIME-Version: 1.0 From: Pengfei Yuan <0xcoolypf@gmail.com> Date: Tue, 12 May 2015 10:00:17 +0800 Message-ID: Subject: Question: use of FS, GS segment registers in Linux To: LKML Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 510 Lines: 17 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/