From mboxrd@z Thu Jan 1 00:00:00 1970 From: losemyheaven@qq.com (=?gb18030?B?wuS62w==?=) Date: Sat, 23 Apr 2016 15:24:33 +0800 Subject: where is __percpu_seg initialized? Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi all: I knew the kernel implement the per-cpu variable via __percpu_seg. For example on x86 architecture, it's defined as: #ifdef CONFIG_X86_64 #define __percpu_seg gs #define __percpu_mov_op movq #else #define __percpu_seg fs #define __percpu_mov_op movl #endif But I'm curious where __percpu_seg is initialized?? I fail to find the relative code. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20160423/2c2d99ff/attachment.html