From mboxrd@z Thu Jan 1 00:00:00 1970 From: laurent.navet@gmail.com (Laurent Navet) Date: Sat, 10 Mar 2018 14:45:23 +0100 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 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. ?