All of lore.kernel.org
 help / color / mirror / Atom feed
* Where is the __per_cpu_offset array initialized??
@ 2018-03-09  8:33 =?gb18030?B?wuS62w==?=
  2018-03-10 13:45 ` Laurent Navet
  0 siblings, 1 reply; 3+ messages in thread
From: =?gb18030?B?wuS62w==?= @ 2018-03-09  8:33 UTC (permalink / raw)
  To: kernelnewbies

Hi list,
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.


Thanks,
Larry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20180309/b9fca7d6/attachment.html>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Where is the __per_cpu_offset array initialized??
  2018-03-09  8:33 Where is the __per_cpu_offset array initialized?? =?gb18030?B?wuS62w==?=
@ 2018-03-10 13:45 ` Laurent Navet
  2018-03-12  2:48   ` 落痕
  0 siblings, 1 reply; 3+ messages in thread
From: Laurent Navet @ 2018-03-10 13:45 UTC (permalink / raw)
  To: kernelnewbies

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. ?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Where is the __per_cpu_offset array initialized??
  2018-03-10 13:45 ` Laurent Navet
@ 2018-03-12  2:48   ` 落痕
  0 siblings, 0 replies; 3+ messages in thread
From: 落痕 @ 2018-03-12  2:48 UTC (permalink / raw)
  To: kernelnewbies

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"<laurent.navet@gmail.com>;
Date:  Sat, Mar 10, 2018 09:45 PM
To:  "??"<losemyheaven@foxmail.com>;
Cc:  "kernelnewbies"<kernelnewbies@kernelnewbies.org>; 
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: <http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20180312/1617a884/attachment.html>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-12  2:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-09  8:33 Where is the __per_cpu_offset array initialized?? =?gb18030?B?wuS62w==?=
2018-03-10 13:45 ` Laurent Navet
2018-03-12  2:48   ` 落痕

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.