From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: "Wang, Baojun" <wangbj@lzu.edu.cn>
Cc: linuxppc-dev@ozlabs.org, rtlinuxgpl@upv.es,
Nicholas Mc Guire <der.herr@hofr.at>,
Miguel Masmano <mimastel@doctor.upv.es>,
linux-embedded@opentech.lzu.edu.cn
Subject: Re: ppc manual paging question
Date: Mon, 22 Oct 2007 14:50:52 +1000 [thread overview]
Message-ID: <1193028652.6745.57.camel@pasglop> (raw)
In-Reply-To: <200710221203.24157.wangbj@lzu.edu.cn>
On Mon, 2007-10-22 at 12:03 +0800, Wang, Baojun wrote:
> hi,
>
> I've got some qeustion about ppc(ppc44x) paging:
>
> how can I manually map a virtual address to a physical address through a
> specific pgd? How does ppc translate virt address to physical one? I think
> besides from tlb, the CPU will search the page table entries via the pgd, can
> I alter the pgd value to change the memory translation? under i386, it's very
> simple, we can just rewrite %%cr3, it even could invalidate all tlb entries
> automatically, how can I do this under ppc? I've tried rewrite
> current->mm->pgd and current->thread.pgdir, but sounds like it still not
> insufficiant, am I missing something vital?
What the heck are you trying to do ? Please explain and I'll tell you
how to do it properly :-)
Cheers,
Ben.
next prev parent reply other threads:[~2007-10-22 4:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-22 4:03 ppc manual paging question Wang, Baojun
2007-10-22 4:03 ` Wang, Baojun
2007-10-22 4:40 ` Nicholas Mc Guire
2007-10-22 4:50 ` Benjamin Herrenschmidt [this message]
[not found] ` <393029235.18964@lzu.edu.cn>
2007-10-22 5:50 ` Wang, Baojun
2007-10-22 5:50 ` Wang, Baojun
2007-10-22 6:01 ` Benjamin Herrenschmidt
[not found] ` <393033430.04221@lzu.edu.cn>
2007-10-22 6:17 ` Wang, Baojun
2007-10-22 6:17 ` Wang, Baojun
2007-10-22 7:53 ` [Rtlinuxgpl] " Nicholas Mc Guire
2007-10-22 7:34 ` Benjamin Herrenschmidt
[not found] ` <393039004.29574@lzu.edu.cn>
2007-10-22 7:42 ` Wang, Baojun
2007-10-22 7:42 ` Wang, Baojun
2007-10-22 8:04 ` Benjamin Herrenschmidt
[not found] ` <393040796.08064@lzu.edu.cn>
2007-10-26 9:50 ` Wang, Baojun
2007-10-26 9:50 ` Wang, Baojun
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=1193028652.6745.57.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=der.herr@hofr.at \
--cc=linux-embedded@opentech.lzu.edu.cn \
--cc=linuxppc-dev@ozlabs.org \
--cc=mimastel@doctor.upv.es \
--cc=rtlinuxgpl@upv.es \
--cc=wangbj@lzu.edu.cn \
/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.