<div>Hi Laurent,</div><div><br></div><div>Thanks for your help.</div><div>But I'm still not sure how it is implemented.</div><div>I'll continue to do some research on the issue, and post my answer if I can.</div><div><br></div><div>Thanks</div><div>Larry</div><div><div><br></div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From: </b> "Laurent Navet"<laurent.navet@gmail.com>;</div><div><b>Date: </b> Sat, Mar 10, 2018 09:45 PM</div><div><b>To: </b> "落痕"<losemyheaven@foxmail.com>;<wbr></div><div><b>Cc: </b> "kernelnewbies"<kernelnewbies@kernelnewbies.org>; <wbr></div><div><b>Subject: </b> Re: Where is the __per_cpu_offset array initialized??</div></div><div><br></div>Hi Larry,<br><br>> Does anyone can tell me where the array __per_cpu_offset is initialized on<br>> x86_64 arch,<br>> I remembered it was initialized in function setup_per_cpu_areas,<br>> but it seems that it is not the case on x86-64 arch.<br><br>It seems your memory is right and code is shared with x86.<br>https://elixir.bootlin.com/linux/latest/source/arch/x86/kernel/setup_percpu.c#L29<br><br>Laurent.<br>-- <br>« On ne résout pas un problème avec les modes de pensée qui l’ont engendré. »<br>« You cannot solve a problem with the same thinking that created it. »<br></div>