Where is the __per_cpu_offset array initialized??
Laurent Navet
laurent.navet at gmail.com
Sat Mar 10 08:45:23 EST 2018
Hi Larry,
> Does anyone can tell me where the array __per_cpu_offset is initialized on
> x86_64 arch,
> I remembered it was initialized in function setup_per_cpu_areas,
> but it seems that it is not the case on x86-64 arch.
It seems your memory is right and code is shared with x86.
https://elixir.bootlin.com/linux/latest/source/arch/x86/kernel/setup_percpu.c#L29
Laurent.
--
« On ne résout pas un problème avec les modes de pensée qui l’ont engendré. »
« You cannot solve a problem with the same thinking that created it. »
More information about the Kernelnewbies
mailing list