public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* How linear address translate to physical address in kernel space?
@ 2005-07-19 11:34 liyu@WAN
  2005-07-19 12:12 ` Steven Rostedt
  0 siblings, 1 reply; 4+ messages in thread
From: liyu@WAN @ 2005-07-19 11:34 UTC (permalink / raw)
  To: LKML

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~


   


   


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

end of thread, other threads:[~2005-07-19 14:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-19 11:34 How linear address translate to physical address in kernel space? liyu@WAN
2005-07-19 12:12 ` Steven Rostedt
2005-07-19 13:39   ` liyu@WAN
2005-07-19 14:20     ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox