From: Dan Malek <dan@mvista.com>
To: jerry <jerry.nguyen@serialsystem.com.sg>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: how to get the physival address
Date: Thu, 05 Apr 2001 02:30:48 -0400 [thread overview]
Message-ID: <3ACC1118.446211F0@mvista.com> (raw)
In-Reply-To: 002001c0bd99$96c03a00$de0fa8c0@mystore
jerry wrote:
> But it does not work for defined variable (it was defined in driver so it
> should be in kernel space, isn't it?).
A loadable driver is dynamically allocated from kernel virtual memory.
The dynamic virtual memory does not have the 1:1 mapping property to
real memory that virt_to_phys(), __pa() or anything else expects. To
me, based upon my past experience, you should be able to get this
mapping information for any virtual address, but others want to
argue about that point. So, I have "fixed" the PowerPC verions of
these functions in the linuxppc_2_5 kernel, but who knows if it
will last.......
-- Dan
--
I like MMUs because I don't have a real life.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2001-04-05 6:30 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-04 0:57 gdb load address and KERNELLOAD Wang Yong
2001-04-04 2:05 ` Dan Malek
2001-04-04 6:42 ` Wolfgang Denk
2001-04-04 15:30 ` Dan Malek
2001-04-04 15:54 ` Wolfgang Denk
2001-04-05 4:13 ` how to get the physival address jerry
2001-04-05 5:58 ` Dan Malek
2001-04-05 6:28 ` jerry
2001-04-05 6:30 ` Dan Malek [this message]
2001-04-05 9:16 ` Gabriel Paubert
-- strict thread matches above, loose matches on Subject: below --
2001-04-05 16:58 Hua Ji
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=3ACC1118.446211F0@mvista.com \
--to=dan@mvista.com \
--cc=jerry.nguyen@serialsystem.com.sg \
--cc=linuxppc-embedded@lists.linuxppc.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).