public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "liyu@WAN" <liyu@ccoss.com.cn>
To: LKML <linux-kernel@vger.kernel.org>
Subject: How linear address translate to physical address in kernel space?
Date: Tue, 19 Jul 2005 19:34:41 +0800	[thread overview]
Message-ID: <42DCE551.80104@ccoss.com.cn> (raw)

HI, every in LKML.

    I have a question that can not understand.

    In kernel space, how linear address translate to physical address ? 
In many kernel bookes,
they said "directly mappd", I think I seen what they said, their mean is 
use __pa()/__va() macro
pair.

    (My platform is i386.)

    but these macro use in case that require use physical address 
explicitly, but in most case,
kernel more need translate them hiddenly. In user space, this 
translation is handled by MMU and
pagefault exception handler of kernel.

    I think kernel can not use CR3 register directly for this purpose, 
beacause of , for example,
when kernel need to switch between user space task, it need change CR3 
regsiter to switch task
address space, if kernel also use CR3 register, this CR3 change will 
break down kernel control flow.

   
    I don't known if I say my question clearly, my english so poor. but 
I am waitting to any answer.

    Thanks in advanced.



                                                                         
   liyu/NOW~


   


   


             reply	other threads:[~2005-07-19 11:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-19 11:34 liyu@WAN [this message]
2005-07-19 12:12 ` How linear address translate to physical address in kernel space? Steven Rostedt
2005-07-19 13:39   ` liyu@WAN
2005-07-19 14:20     ` Steven Rostedt

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=42DCE551.80104@ccoss.com.cn \
    --to=liyu@ccoss.com.cn \
    --cc=linux-kernel@vger.kernel.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