From mboxrd@z Thu Jan 1 00:00:00 1970 From: losemyheaven@foxmail.com (=?utf-8?B?6JC955eV?=) Date: Mon, 12 Mar 2018 10:48:30 +0800 Subject: Where is the __per_cpu_offset array initialized?? In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org Hi Laurent, Thanks for your help. But I'm still not sure how it is implemented. I'll continue to do some research on the issue, and post my answer if I can. Thanks Larry ------------------ Original ------------------ From: "Laurent Navet"; Date: Sat, Mar 10, 2018 09:45 PM To: "??"; Cc: "kernelnewbies"; Subject: Re: Where is the __per_cpu_offset array initialized?? 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. ? -------------- next part -------------- An HTML attachment was scrubbed... URL: