From: 舒国强 <guoqiang@intec.iscas.ac.cn>
To: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Question about ioremap and io_remap_page_range
Date: Thu, 27 Sep 2001 14:4:42 +0800 [thread overview]
Message-ID: <200109270557.NAA22817@intec.iscas.ac.cn> (raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="GB2312", Size: 952 bytes --]
Here is some rather basic questions I want ask ,any reply or comment please
CC to my emailbox,thank you very much.
When I work with kernel 2.4.2 in Intel X86 , I use
VIRT_ADDR = ioremap(BUS_ADDR); to map a section of PCI memory, and
X_ADDR = virt_to_phys(VIRT_ADDR);
I think in x86 platform X_ADDR should equel with BUS_ADDR, but it turns to be
NOT, can you explain ?
In X86 platform ,Can I use return value of ioremap() as a memory pointer?
I use io_remap_page_range(BUS_ADDR,,) in mmap() function,but the result is
that the memory I map is READ ONLY from user space,when I try to write to it,
a "do_sw_pg. bogus page(XXXXXXXX)" appears. Can you explain to me?
I know these questions are childish,but I need the answer urgently,thanks!
George Shu
ý:.˱Êâmçë¢kaÉb²ßìzwm
ébïî˱Êâmébìÿêçz_âØ^nr¡ö¦zË\x1aëh¨èÚ&£ûàz¿äz¹Þú+Ê+zf£¢·h§~Ûiÿÿïêÿêçz_è®\x0fæj:+v¨þ)ߣømSåy«\x1eæ¶\x17
\x01\x06ÛiÿÿðÃ\x0fí»\x1fè®\x0fåi\x7f
next reply other threads:[~2001-09-27 6:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-27 6:04 舒国强 [this message]
2001-09-27 6:52 ` Ingo Molnar
2001-09-27 8:03 ` Armin Schindler
2001-09-27 8:16 ` Russell King
2001-09-27 8:14 ` David S. Miller
2001-09-27 14:33 ` Jonathan Corbet
2001-09-27 17:42 ` Jonathan Lundell
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=200109270557.NAA22817@intec.iscas.ac.cn \
--to=guoqiang@intec.iscas.ac.cn \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®