From: hychon <hychon@genetel.co.kr>
To: linuxppc-embedded@lists.linuxppc.org
Subject: how to get a physical address?
Date: Mon, 23 Jul 2001 13:01:45 +0900 [thread overview]
Message-ID: <3B5BA1A4.CF1BA180@genetel.co.kr> (raw)
Hi~~
I want to know "how to get a physical address from mmaped area??"
I find some information variable vitrual address is "from
3G+physical_memory_size + 8M to 4G" here mailing site.
my case , 32M ram
I allocate vitrual address throgh by following
mem1_chy = open("/dev/kmem", O_RDWR);
chy_addr1 = mmap(0, 64*1024,(PROT_READ|PROT_WRITE),MAP_SHARED, mem1_chy
,0xFF000000 );
printf(" address : chy_addr1 = %x \n", chy_addr );
---> result => address : chy_addr1 = 30027000
and
mem2_chy = open("/dev/kmem", O_RDWR);
chy_addr2 = mmap(0, 64*1024,(PROT_READ|PROT_WRITE),MAP_SHARED,
mem2_chy , 0x100000 );
printf(" address : chy_addr2 = %x \n", chy_addr2 );
---> result => address : chy_addr2 = 30016000
how a get a phyisical address of chy_addr2 (chy_addr1) ??
chy_addr 2is not return "100000" . wondering??
I want a little information about "from 3G+physical_memory_size + 8M
to 4G"?
- why it add 8M ?
anyway, I want to know get a physical address from VMA araa??
-- hye yong --
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
reply other threads:[~2001-07-23 4:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3B5BA1A4.CF1BA180@genetel.co.kr \
--to=hychon@genetel.co.kr \
--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).