where is __percpu_seg initialized?
Dave Tian
dave.jing.tian at gmail.com
Sat Apr 23 10:02:25 EDT 2016
load_percpu_segment, which is called by switch_to_new_gdt in setup_per_cpu_areas.
-daveti
> On Apr 23, 2016, at 3:24 AM, 落痕 <losemyheaven at qq.com> wrote:
>
> 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.
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
More information about the Kernelnewbies
mailing list