From: "jerry" <jerry.nguyen@serialsystem.com.sg>
To: <linuxppc-embedded@lists.linuxppc.org>
Subject: how to get the physival address
Date: Thu, 5 Apr 2001 12:13:29 +0800 [thread overview]
Message-ID: <001001c0bd86$c54562a0$de0fa8c0@mystore> (raw)
In-Reply-To: 20010404155419.8B369281DB@denx.denx.de
Hi All,
I have a silly question but seem I can not figure out the answer myself. I
try write a driver, in which I define a array like"
file : dummy.o
unsigned char buffer_array[4096];
....
bdp->cbd_bufaddr = __pa(buffer_array);
my problem is: I try to get the physical address of buffer array, but the
_pa did not return correct address.
I try to print out: buffer_array = 0xC4056220
_pa(buffer_array) = 0x4056220
But my RAM only 16M = 0x100000
My question is: how to get the physical address of buffer_array.
Thank for any answer
Jerry
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2001-04-05 4:13 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 ` jerry [this message]
2001-04-05 5:58 ` how to get the physival address Dan Malek
2001-04-05 6:28 ` jerry
2001-04-05 6:30 ` Dan Malek
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='001001c0bd86$c54562a0$de0fa8c0@mystore' \
--to=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).