All of lore.kernel.org
 help / color / mirror / Atom feed
From: laurent.navet@gmail.com (Laurent Navet)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Where is the __per_cpu_offset array initialized??
Date: Sat, 10 Mar 2018 14:45:23 +0100	[thread overview]
Message-ID: <CAH7P7NjJ_9bV_BM3=ySxMYK-fww=tPfQed0UZ=jyOoR8KMXD3g@mail.gmail.com> (raw)
In-Reply-To: <tencent_12C610A3127E597E037FA984683F9C079C07@qq.com>

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

  reply	other threads:[~2018-03-10 13:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-09  8:33 Where is the __per_cpu_offset array initialized?? =?gb18030?B?wuS62w==?=
2018-03-10 13:45 ` Laurent Navet [this message]
2018-03-12  2:48   ` 落痕

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH7P7NjJ_9bV_BM3=ySxMYK-fww=tPfQed0UZ=jyOoR8KMXD3g@mail.gmail.com' \
    --to=laurent.navet@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.