kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
From: mulyadi.santosa@gmail.com (Mulyadi Santosa)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Contents of CR3 register when a kernel thread is executed
Date: Tue, 19 Apr 2011 02:36:10 +0700	[thread overview]
Message-ID: <BANLkTinDEGct0Qeh2R19CxyQnV7ZkFYYJQ@mail.gmail.com> (raw)
In-Reply-To: <SNT111-DS18E78D5609ADC43AA1D389A7910@phx.gbl>

On 18/04/2011, limp <johnkyr83@hotmail.com> wrote:
> Hi all,
>
> I am trying to understand in what extend the PGD (page global directory)
> value stored in the CR3 register indicate the running process/thread by the
> Linux scheduler.
>
> I know that each process has its own PGD value but what I am confused about
> is the value of CR3 register when kernel threads are scheduled.

kernel thread(s) simply borrow latest scheduled process's PGD ( that
means, the entire address space)....this is done to save unneccessary
TLB flush since kernel thread operates in kernel space and that's the
same to all processes

-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

  reply	other threads:[~2011-04-18 19:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Acv9yv2t5DK6iTKkQTODS14CKbqf+w==>
2011-04-18 13:17 ` Contents of CR3 register when a kernel thread is executed limp
2011-04-18 19:36   ` Mulyadi Santosa [this message]
2011-04-19 12:49   ` Peter Teoh
2011-04-20 22:23     ` limp
2011-04-21  1:33       ` Dave Hylands
2011-04-21  4:15       ` Peter Teoh

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=BANLkTinDEGct0Qeh2R19CxyQnV7ZkFYYJQ@mail.gmail.com \
    --to=mulyadi.santosa@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).